Remove Explicit GridId References (#8315)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -104,7 +104,7 @@ namespace Content.Server.Physics.Controllers
|
||||
|
||||
public IEnumerable<(EntityUid, TransformComponent)> GetEntitiesToMove(ConveyorComponent comp, TransformComponent xform)
|
||||
{
|
||||
if (!_mapManager.TryGetGrid(xform.GridID, out var grid) ||
|
||||
if (!_mapManager.TryGetGrid(xform.GridEntityId, out var grid) ||
|
||||
!grid.TryGetTileRef(xform.Coordinates, out var tile)) yield break;
|
||||
|
||||
var tileAABB = _lookup.GetLocalBounds(tile, grid.TileSize).Enlarged(0.01f);
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Content.Server.Physics.Controllers
|
||||
if (pilot.Console == null) continue;
|
||||
_excludedMobs.Add(mover.Owner);
|
||||
|
||||
var gridId = xform.GridID;
|
||||
var gridId = xform.GridEntityId;
|
||||
// This tries to see if the grid is a shuttle
|
||||
if (!_mapManager.TryGetGrid(gridId, out var grid) ||
|
||||
!EntityManager.TryGetComponent(grid.GridEntityId, out ShuttleComponent? shuttleComponent)) continue;
|
||||
|
||||
Reference in New Issue
Block a user