Fix docking FTL to planets being impossible (#21780)

This commit is contained in:
metalgearsloth
2023-11-22 12:02:02 +11:00
committed by GitHub
parent 6fa144b465
commit 626313be1c

View File

@@ -176,7 +176,7 @@ public sealed partial class DockingSystem
// Check if there's no intersecting grids (AKA oh god it's docking at cargo).
grids.Clear();
_mapManager.FindGridsIntersecting(targetGridXform.MapID, dockedBounds, ref grids);
if (grids.Any(o => o.Owner != targetGrid))
if (grids.Any(o => o.Owner != targetGrid && o.Owner != targetGridXform.MapUid))
{
continue;
}