]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix docking (#14789)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 23 Mar 2023 06:50:51 +0000 (17:50 +1100)
committerGitHub <noreply@github.com>
Thu, 23 Mar 2023 06:50:51 +0000 (17:50 +1100)
Content.Server/Shuttles/Systems/DockingSystem.cs

index 24471d9bc6ce61dc26e4df03e6fd8a1c2a8601f9..38f8e4f0a429fd8227a84519b66538b46ec4d598 100644 (file)
@@ -284,6 +284,7 @@ namespace Content.Server.Shuttles.Systems
             if (dockBUid.GetHashCode() < dockAUid.GetHashCode())
             {
                 (dockA, dockB) = (dockB, dockA);
+                (dockAUid, dockBUid) = (dockBUid, dockAUid);
             }
 
             _sawmill.Debug($"Docking between {dockAUid} and {dockBUid}");
@@ -351,7 +352,7 @@ namespace Content.Server.Shuttles.Systems
 
             if (TryComp(dockAUid, out DoorComponent? doorA))
             {
-                if (_doorSystem.TryOpen(doorA.Owner, doorA))
+                if (_doorSystem.TryOpen(dockAUid, doorA))
                 {
                     doorA.ChangeAirtight = false;
                     if (TryComp<AirlockComponent>(dockAUid, out var airlockA))
@@ -363,7 +364,7 @@ namespace Content.Server.Shuttles.Systems
 
             if (TryComp(dockBUid, out DoorComponent? doorB))
             {
-                if (_doorSystem.TryOpen(doorB.Owner, doorB))
+                if (_doorSystem.TryOpen(dockBUid, doorB))
                 {
                     doorB.ChangeAirtight = false;
                     if (TryComp<AirlockComponent>(dockBUid, out var airlockB))