Nullable grid Uid (#8798)
This commit is contained in:
@@ -98,7 +98,7 @@ namespace Content.Shared.SubFloor
|
||||
if (!Resolve(uid, ref component, ref xform))
|
||||
return;
|
||||
|
||||
if (xform.Anchored && MapManager.TryGetGrid(xform.GridEntityId, out var grid))
|
||||
if (xform.Anchored && MapManager.TryGetGrid(xform.GridUid, out var grid))
|
||||
component.IsUnderCover = HasFloorCover(grid, grid.TileIndicesFor(xform.Coordinates));
|
||||
else
|
||||
component.IsUnderCover = false;
|
||||
|
||||
Reference in New Issue
Block a user