Code Cleanup: Purge obsolete MapManager methods (#26279)
* GetGrid * GridExists * TryGetGrid
This commit is contained in:
@@ -132,7 +132,7 @@ public sealed class RCDSystem : EntitySystem
|
||||
return;
|
||||
}
|
||||
|
||||
var mapGrid = _mapMan.GetGrid(gridId.Value);
|
||||
var mapGrid = Comp<MapGridComponent>(gridId.Value);
|
||||
var tile = mapGrid.GetTileRef(location);
|
||||
|
||||
if (!IsRCDStillValid(uid, comp, args.Event.User, args.Event.Target, mapGrid, tile, args.Event.StartingMode))
|
||||
@@ -157,7 +157,7 @@ public sealed class RCDSystem : EntitySystem
|
||||
return;
|
||||
}
|
||||
|
||||
var mapGrid = _mapMan.GetGrid(gridId.Value);
|
||||
var mapGrid = Comp<MapGridComponent>(gridId.Value);
|
||||
var tile = mapGrid.GetTileRef(location);
|
||||
var snapPos = mapGrid.TileIndicesFor(location);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user