]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Prevent gridfill from leaking (#30395)
authorIProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com>
Sun, 28 Jul 2024 03:20:29 +0000 (23:20 -0400)
committerGitHub <noreply@github.com>
Sun, 28 Jul 2024 03:20:29 +0000 (13:20 +1000)
dont forget to set the airtights when the tights are aired

Content.Server/Shuttles/Systems/DockingSystem.cs

index 59a030e83c972dae8458479ad8c1fbc652939472..f46c3980e58c88e938e4964d3bd12d8a4cbb07a2 100644 (file)
@@ -281,24 +281,24 @@ namespace Content.Server.Shuttles.Systems
             {
                 if (_doorSystem.TryOpen(dockAUid, doorA))
                 {
-                    doorA.ChangeAirtight = false;
                     if (TryComp<DoorBoltComponent>(dockAUid, out var airlockA))
                     {
                         _doorSystem.SetBoltsDown((dockAUid, airlockA), true);
                     }
                 }
+                doorA.ChangeAirtight = false;
             }
 
             if (TryComp(dockBUid, out DoorComponent? doorB))
             {
                 if (_doorSystem.TryOpen(dockBUid, doorB))
                 {
-                    doorB.ChangeAirtight = false;
                     if (TryComp<DoorBoltComponent>(dockBUid, out var airlockB))
                     {
                         _doorSystem.SetBoltsDown((dockBUid, airlockB), true);
                     }
                 }
+                doorB.ChangeAirtight = false;
             }
 
             if (_pathfinding.TryCreatePortal(dockAXform.Coordinates, dockBXform.Coordinates, out var handle))