Content side for removing IMap / IMapGrid comps (#12357)
This commit is contained in:
@@ -43,7 +43,7 @@ public sealed partial class AtmosphereSystem
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
if (!TryComp(uid, out IMapGridComponent? mapGrid))
|
||||
if (!TryComp(uid, out MapGridComponent? mapGrid))
|
||||
return;
|
||||
|
||||
foreach (var (indices, tile) in gridAtmosphere.Tiles)
|
||||
@@ -324,7 +324,7 @@ public sealed partial class AtmosphereSystem
|
||||
|
||||
adjacent.BlockedAirflow = GetBlockedDirections(mapGridComp.Grid, adjacent.GridIndices);
|
||||
|
||||
// Pass in IMapGridComponent so we don't have to resolve it for every adjacent direction.
|
||||
// Pass in MapGridComponent so we don't have to resolve it for every adjacent direction.
|
||||
var tileBlockedEv = new IsTileAirBlockedMethodEvent(uid, tile.GridIndices, direction, mapGridComp);
|
||||
GridIsTileAirBlocked(uid, component, ref tileBlockedEv);
|
||||
|
||||
@@ -418,7 +418,7 @@ public sealed partial class AtmosphereSystem
|
||||
if (!adjEv.Handled || !component.Tiles.TryGetValue(args.Tile, out var tile))
|
||||
return;
|
||||
|
||||
if (!TryComp<IMapGridComponent>(uid, out var mapGridComp))
|
||||
if (!TryComp<MapGridComponent>(uid, out var mapGridComp))
|
||||
return;
|
||||
|
||||
var adjacent = adjEv.Result!.ToArray();
|
||||
|
||||
Reference in New Issue
Block a user