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:
@@ -28,7 +28,8 @@ public partial class AtmosphereSystem
|
||||
|
||||
// Pay more for gas canisters that are more pure
|
||||
float purity = 1;
|
||||
if (totalMoles > 0) {
|
||||
if (totalMoles > 0)
|
||||
{
|
||||
purity = maxComponent / totalMoles;
|
||||
}
|
||||
|
||||
@@ -88,7 +89,7 @@ public partial class AtmosphereSystem
|
||||
|
||||
fixVacuum |= airtight.FixVacuum;
|
||||
|
||||
if(!airtight.AirBlocked)
|
||||
if (!airtight.AirBlocked)
|
||||
continue;
|
||||
|
||||
blockedDirs |= airtight.AirBlockedDirection;
|
||||
@@ -106,9 +107,9 @@ public partial class AtmosphereSystem
|
||||
/// </summary>
|
||||
/// <param name="mapGrid">The grid in question.</param>
|
||||
/// <param name="tile">The indices of the tile.</param>
|
||||
private void PryTile(MapGridComponent mapGrid, Vector2i tile)
|
||||
private void PryTile(Entity<MapGridComponent> mapGrid, Vector2i tile)
|
||||
{
|
||||
if (!mapGrid.TryGetTileRef(tile, out var tileRef))
|
||||
if (!_mapSystem.TryGetTileRef(mapGrid.Owner, mapGrid.Comp, tile, out var tileRef))
|
||||
return;
|
||||
|
||||
_tile.PryTile(tileRef);
|
||||
|
||||
Reference in New Issue
Block a user