Fix weird lifestage autorefactors.
This commit is contained in:
@@ -108,7 +108,7 @@ namespace Content.Server.Radiation
|
||||
|
||||
public void Update(float frameTime)
|
||||
{
|
||||
if (!Decay || (!_entMan.EntityExists(Owner) ? EntityLifeStage.Deleted : _entMan.GetComponent<MetaDataComponent>(Owner).EntityLifeStage) >= EntityLifeStage.Deleted)
|
||||
if (!Decay || _entMan.Deleted(Owner))
|
||||
return;
|
||||
|
||||
if (_duration <= 0f)
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Content.Server.Radiation
|
||||
comp.Update(RadiationCooldown);
|
||||
var ent = comp.Owner;
|
||||
|
||||
if ((!_entMan.EntityExists(ent) ? EntityLifeStage.Deleted : _entMan.GetComponent<MetaDataComponent>(ent).EntityLifeStage) >= EntityLifeStage.Deleted) continue;
|
||||
if (Deleted(ent)) continue;
|
||||
|
||||
foreach (var entity in _lookup.GetEntitiesInRange(_entMan.GetComponent<TransformComponent>(ent).Coordinates, comp.Range))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user