Fixed Kudzu Spread Falling Asleep After Containment (#18218)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Shared.Atmos;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Map.Components;
|
||||
using Content.Shared.Destructible;
|
||||
|
||||
namespace Content.Server.Atmos.EntitySystems
|
||||
{
|
||||
@@ -90,7 +91,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
airtight.CurrentAirBlockedDirection = (int) Rotate((AtmosDirection)airtight.InitialAirBlockedDirection, ev.NewRotation);
|
||||
UpdatePosition(airtight, ev.Component);
|
||||
var airtightEv = new AirtightChanged(uid, airtight);
|
||||
RaiseLocalEvent(uid, ref airtightEv);
|
||||
RaiseLocalEvent(uid, ref airtightEv, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -104,7 +105,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
airtight.AirBlocked = airblocked;
|
||||
UpdatePosition(airtight, xform);
|
||||
var airtightEv = new AirtightChanged(uid, airtight);
|
||||
RaiseLocalEvent(uid, ref airtightEv);
|
||||
RaiseLocalEvent(uid, ref airtightEv, true);
|
||||
}
|
||||
|
||||
public void UpdatePosition(AirtightComponent airtight, TransformComponent? xform = null)
|
||||
|
||||
Reference in New Issue
Block a user