network airlock AutoClose (#32124)

* network airlock AutoClose

* least stupid language

* great language

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2024-09-14 00:51:51 +00:00
committed by GitHub
parent beced35e17
commit b11fdd5f0b
3 changed files with 8 additions and 3 deletions

View File

@@ -56,7 +56,10 @@ public abstract class SharedAirlockSystem : EntitySystem
// Make sure the airlock auto closes again next time it is opened
if (args.State == DoorState.Closed)
{
component.AutoClose = true;
Dirty(uid, component);
}
}
private void OnBeforeDoorOpened(EntityUid uid, AirlockComponent component, BeforeDoorOpenedEvent args)