Fix for obsolete method warning in AtmosphericsSystem (#37897)
* Make PryTile use Entity<T> Converts the old parameters into an obsolete overload * Make HandleDecompressionFloorRip use Entity<T> Converts the old parameters into an obsolete overload * Convert the one use to use Entity<T> * Delete obsolete private methods
This commit is contained in:
@@ -550,7 +550,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
}
|
||||
|
||||
InvalidateVisuals(ent, otherTile);
|
||||
HandleDecompressionFloorRip(mapGrid, otherTile, otherTile.MonstermosInfo.CurrentTransferAmount);
|
||||
HandleDecompressionFloorRip((owner, mapGrid), otherTile, otherTile.MonstermosInfo.CurrentTransferAmount);
|
||||
}
|
||||
|
||||
if (GridImpulse && tileCount > 0)
|
||||
@@ -682,7 +682,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
adj.MonstermosInfo[idx.ToOppositeDir()] -= amount;
|
||||
}
|
||||
|
||||
private void HandleDecompressionFloorRip(MapGridComponent mapGrid, TileAtmosphere tile, float sum)
|
||||
private void HandleDecompressionFloorRip(Entity<MapGridComponent> mapGrid, TileAtmosphere tile, float sum)
|
||||
{
|
||||
if (!MonstermosRipTiles)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user