Adds Invalidate method to TileAtmosphere, clean up a bunch of tile invalidations
This commit is contained in:
@@ -70,7 +70,7 @@ namespace Content.Server.Commands.Atmos
|
||||
}
|
||||
|
||||
tile.Air.AdjustMoles(gasId, moles);
|
||||
gam.Invalidate(indices);
|
||||
tile.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace Content.Server.Commands.Atmos
|
||||
|
||||
tile.Air.Clear();
|
||||
|
||||
atmosphere.Invalidate(tile.GridIndices);
|
||||
tile.Invalidate();
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -176,7 +176,7 @@ namespace Content.Server.Commands.Atmos
|
||||
|
||||
tile.Air.SetMoles(gas.Value, 0);
|
||||
|
||||
atmosphere.Invalidate(tile.GridIndices);
|
||||
tile.Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace Content.Server.Commands.Atmos
|
||||
foreach (var tile in gam)
|
||||
{
|
||||
tile.Air?.AdjustMoles(gasId, moles);
|
||||
gam.Invalidate(tile.GridIndices);
|
||||
tile.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Content.Server.Commands.Atmos
|
||||
else
|
||||
tile.Air.Remove(amount);
|
||||
|
||||
gam.Invalidate(indices);
|
||||
tile.Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Content.Server.Commands.Atmos
|
||||
tiles++;
|
||||
|
||||
tile.Air.Temperature = temperature;
|
||||
gam.Invalidate(tile.GridIndices);
|
||||
tile.Invalidate();
|
||||
}
|
||||
|
||||
shell.SendText(player, $"Changed the temperature of {tiles} tiles.");
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace Content.Server.Commands.Atmos
|
||||
}
|
||||
|
||||
tile.Air.Temperature = temperature;
|
||||
gam.Invalidate(indices);
|
||||
tile.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user