Revert "Remove references to obsolete GridId" (#11790)

This commit is contained in:
metalgearsloth
2022-10-09 17:33:23 +11:00
committed by GitHub
parent 3fbd60cdde
commit 0c7d4acd7b
7 changed files with 32 additions and 30 deletions

View File

@@ -97,7 +97,7 @@ public sealed partial class ShuttleSystem
foreach (var other in _mapManager.FindGridsIntersecting(xform.MapID, bounds))
{
if (grid.Owner == other.GridEntityId ||
if (grid.GridIndex == other.Index ||
!bodyQuery.TryGetComponent(other.GridEntityId, out var body) ||
body.Mass < ShuttleFTLMassThreshold) continue;