Remove references to obsolete GridId (#11531)

This commit is contained in:
SpaceManiac
2022-10-08 22:23:49 -07:00
committed by GitHub
parent e85f161226
commit 0048dc5919
7 changed files with 30 additions and 32 deletions

View File

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