Add interlocking airlocks (#14177)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -131,6 +131,10 @@ public abstract class SharedDoorSystem : EntitySystem
|
||||
if (!Resolve(uid, ref door))
|
||||
return;
|
||||
|
||||
// If no change, return to avoid firing a new DoorStateChangedEvent.
|
||||
if (state == door.State)
|
||||
return;
|
||||
|
||||
switch (state)
|
||||
{
|
||||
case DoorState.Opening:
|
||||
|
||||
Reference in New Issue
Block a user