Replace GridEntityId with Owner (#12743)
This commit is contained in:
@@ -289,7 +289,7 @@ namespace Content.Server.Physics.Controllers
|
||||
foreach (var entity in comp.Intersecting)
|
||||
{
|
||||
if (!xformQuery.TryGetComponent(entity, out var entityXform) ||
|
||||
entityXform.ParentUid != grid.GridEntityId)
|
||||
entityXform.ParentUid != grid.Owner)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ namespace Content.Server.Physics.Controllers
|
||||
var gridId = xform.GridUid;
|
||||
// This tries to see if the grid is a shuttle and if the console should work.
|
||||
if (!_mapManager.TryGetGrid(gridId, out var grid) ||
|
||||
!EntityManager.TryGetComponent(grid.GridEntityId, out ShuttleComponent? shuttleComponent) ||
|
||||
!EntityManager.TryGetComponent(grid.Owner, out ShuttleComponent? shuttleComponent) ||
|
||||
!shuttleComponent.Enabled) continue;
|
||||
|
||||
if (!newPilots.TryGetValue(shuttleComponent, out var pilots))
|
||||
|
||||
Reference in New Issue
Block a user