Prevent non-airlock doors from closing on people. (#6882)
This commit is contained in:
@@ -35,8 +35,8 @@ public abstract class SharedAirlockSystem : EntitySystem
|
||||
|
||||
protected virtual void OnBeforeDoorClosed(EntityUid uid, SharedAirlockComponent airlock, BeforeDoorClosedEvent args)
|
||||
{
|
||||
if (airlock.Safety && DoorSystem.GetColliding(uid).Any())
|
||||
args.Cancel();
|
||||
if (!airlock.Safety)
|
||||
args.PerformCollisionCheck = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user