Fix docking re-anchor crash (#16404)
This commit is contained in:
@@ -236,10 +236,11 @@ namespace Content.Server.Shuttles.Systems
|
|||||||
if (!component.Docked)
|
if (!component.Docked)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var other = Comp<DockingComponent>(component.DockedWith!.Value);
|
var otherDock = component.DockedWith;
|
||||||
|
var other = Comp<DockingComponent>(otherDock!.Value);
|
||||||
|
|
||||||
Undock(uid, component);
|
Undock(uid, component);
|
||||||
Dock(uid, component, component.DockedWith.Value, other);
|
Dock(uid, component, otherDock.Value, other);
|
||||||
_console.RefreshShuttleConsoles();
|
_console.RefreshShuttleConsoles();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user