Fix RestrictedRange boundary (#22570)

This commit is contained in:
metalgearsloth
2023-12-16 13:19:54 +11:00
committed by GitHub
parent 940caff758
commit c0de572f3e

View File

@@ -1,4 +1,5 @@
using System.Numerics;
using Content.Shared.Movement.Components;
using Content.Shared.Physics;
using Content.Shared.Salvage;
using Robust.Shared.Map;
@@ -38,6 +39,7 @@ public sealed class RestrictedRangeSystem : SharedRestrictedRangeSystem
collisionLayer: (int) (CollisionGroup.HighImpassable | CollisionGroup.Impassable | CollisionGroup.LowImpassable),
body: boundaryPhysics);
_physics.WakeBody(boundaryUid, body: boundaryPhysics);
AddComp<BoundaryComponent>(boundaryUid);
return boundaryUid;
}
}