Inline OwnerUid
This commit is contained in:
@@ -269,7 +269,7 @@ namespace Content.Server.Atmos.Components
|
||||
range = MaxExplosionRange;
|
||||
}
|
||||
|
||||
EntitySystem.Get<ExplosionSystem>().SpawnExplosion(OwnerUid, (int) (range * 0.25f), (int) (range * 0.5f), (int) (range * 1.5f), 1);
|
||||
EntitySystem.Get<ExplosionSystem>().SpawnExplosion(((IComponent) this).Owner, (int) (range * 0.25f), (int) (range * 0.5f), (int) (range * 1.5f), 1);
|
||||
|
||||
IoCManager.Resolve<IEntityManager>().QueueDeleteEntity((EntityUid) Owner);
|
||||
return;
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
{
|
||||
airtight.AirBlocked = airblocked;
|
||||
UpdatePosition(airtight);
|
||||
RaiseLocalEvent(airtight.OwnerUid, new AirtightChanged(airtight));
|
||||
RaiseLocalEvent(((IComponent) airtight).Owner, new AirtightChanged(airtight));
|
||||
}
|
||||
|
||||
public void UpdatePosition(AirtightComponent airtight)
|
||||
|
||||
@@ -201,9 +201,9 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
var fireStackDelta = fireStackMod - flammable.FireStacks;
|
||||
if (fireStackDelta > 0)
|
||||
{
|
||||
AdjustFireStacks(flammable.OwnerUid, fireStackDelta, flammable);
|
||||
AdjustFireStacks(((IComponent) flammable).Owner, fireStackDelta, flammable);
|
||||
}
|
||||
Ignite(flammable.OwnerUid, flammable);
|
||||
Ignite(((IComponent) flammable).Owner, flammable);
|
||||
}
|
||||
_fireEvents.Clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user