Minor atmos optimisations (#6625)

This commit is contained in:
metalgearsloth
2022-02-20 17:43:20 +11:00
committed by GitHub
parent 5b53b69191
commit 07b38e5acd
9 changed files with 172 additions and 112 deletions

View File

@@ -112,7 +112,7 @@ namespace Content.Server.Atmos.EntitySystems
AddActiveTile(atmosphere, tile);
// TODO ATMOS: Query all the contents of this tile (like walls) and calculate the correct thermal conductivity and heat capacity
var tileDef = tile.Tile?.Tile.GetContentTileDefinition();
var tileDef = GetTile(tile)?.Tile.GetContentTileDefinition(_tileDefinitionManager);
tile.ThermalConductivity = tileDef?.ThermalConductivity ?? 0.5f;
tile.HeatCapacity = tileDef?.HeatCapacity ?? float.PositiveInfinity;
InvalidateVisuals(mapGrid.Index, indices);