diff --git a/Content.Server/Shuttles/Systems/ShuttleSystem.Hyperspace.cs b/Content.Server/Shuttles/Systems/ShuttleSystem.Hyperspace.cs index a6dc433c7a..97d3f3e00b 100644 --- a/Content.Server/Shuttles/Systems/ShuttleSystem.Hyperspace.cs +++ b/Content.Server/Shuttles/Systems/ShuttleSystem.Hyperspace.cs @@ -251,7 +251,8 @@ public sealed partial class ShuttleSystem private bool TryHyperspaceDock(ShuttleComponent component, EntityUid targetUid) { if (!TryComp(component.Owner, out var xform) || - !TryComp(targetUid, out var targetXform)) return false; + !TryComp(targetUid, out var targetXform) || + targetXform.MapUid == null) return false; var config = GetDockingConfig(component, targetUid); @@ -291,7 +292,7 @@ public sealed partial class ShuttleSystem shuttleBody.AngularVelocity = 0f; } - xform.WorldPosition = spawnPos; + xform.Coordinates = new EntityCoordinates(targetXform.MapUid.Value, spawnPos); xform.WorldRotation = _random.NextAngle(); return false; }