Code Cleanup: Purge obsolete MapManager methods (#26279)
* GetGrid * GridExists * TryGetGrid
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Content.Shared.Construction.Components;
|
||||
using Content.Shared.SubFloor;
|
||||
using Robust.Shared.Map.Components;
|
||||
|
||||
namespace Content.Server.SubFloor;
|
||||
|
||||
@@ -17,7 +18,7 @@ public sealed class SubFloorHideSystem : SharedSubFloorHideSystem
|
||||
// No teleporting entities through floor tiles when anchoring them.
|
||||
var xform = Transform(uid);
|
||||
|
||||
if (MapManager.TryGetGrid(xform.GridUid, out var grid)
|
||||
if (TryComp<MapGridComponent>(xform.GridUid, out var grid)
|
||||
&& HasFloorCover(grid, grid.TileIndicesFor(xform.Coordinates)))
|
||||
{
|
||||
args.Cancel();
|
||||
|
||||
Reference in New Issue
Block a user