Remove Explicit GridId References (#8315)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ public sealed class SubFloorHideSystem : SharedSubFloorHideSystem
|
||||
// No teleporting entities through floor tiles when anchoring them.
|
||||
var xform = Transform(uid);
|
||||
|
||||
if (MapManager.TryGetGrid(xform.GridID, out var grid)
|
||||
if (MapManager.TryGetGrid(xform.GridEntityId, out var grid)
|
||||
&& HasFloorCover(grid, grid.TileIndicesFor(xform.Coordinates)))
|
||||
{
|
||||
args.Cancel();
|
||||
|
||||
Reference in New Issue
Block a user