Nullable grid Uid (#8798)
This commit is contained in:
@@ -66,7 +66,7 @@ namespace Content.Server.Physics.Controllers
|
||||
if (pilot.Console == null) continue;
|
||||
_excludedMobs.Add(mover.Owner);
|
||||
|
||||
var gridId = xform.GridEntityId;
|
||||
var gridId = xform.GridUid;
|
||||
// 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