Fix docking (#14789)
This commit is contained in:
@@ -284,6 +284,7 @@ namespace Content.Server.Shuttles.Systems
|
|||||||
if (dockBUid.GetHashCode() < dockAUid.GetHashCode())
|
if (dockBUid.GetHashCode() < dockAUid.GetHashCode())
|
||||||
{
|
{
|
||||||
(dockA, dockB) = (dockB, dockA);
|
(dockA, dockB) = (dockB, dockA);
|
||||||
|
(dockAUid, dockBUid) = (dockBUid, dockAUid);
|
||||||
}
|
}
|
||||||
|
|
||||||
_sawmill.Debug($"Docking between {dockAUid} and {dockBUid}");
|
_sawmill.Debug($"Docking between {dockAUid} and {dockBUid}");
|
||||||
@@ -351,7 +352,7 @@ namespace Content.Server.Shuttles.Systems
|
|||||||
|
|
||||||
if (TryComp(dockAUid, out DoorComponent? doorA))
|
if (TryComp(dockAUid, out DoorComponent? doorA))
|
||||||
{
|
{
|
||||||
if (_doorSystem.TryOpen(doorA.Owner, doorA))
|
if (_doorSystem.TryOpen(dockAUid, doorA))
|
||||||
{
|
{
|
||||||
doorA.ChangeAirtight = false;
|
doorA.ChangeAirtight = false;
|
||||||
if (TryComp<AirlockComponent>(dockAUid, out var airlockA))
|
if (TryComp<AirlockComponent>(dockAUid, out var airlockA))
|
||||||
@@ -363,7 +364,7 @@ namespace Content.Server.Shuttles.Systems
|
|||||||
|
|
||||||
if (TryComp(dockBUid, out DoorComponent? doorB))
|
if (TryComp(dockBUid, out DoorComponent? doorB))
|
||||||
{
|
{
|
||||||
if (_doorSystem.TryOpen(doorB.Owner, doorB))
|
if (_doorSystem.TryOpen(dockBUid, doorB))
|
||||||
{
|
{
|
||||||
doorB.ChangeAirtight = false;
|
doorB.ChangeAirtight = false;
|
||||||
if (TryComp<AirlockComponent>(dockBUid, out var airlockB))
|
if (TryComp<AirlockComponent>(dockBUid, out var airlockB))
|
||||||
|
|||||||
Reference in New Issue
Block a user