Fix atmos NaN error (#26441)
* Fix atmos NAN error * Remove redundant yaml entries
This commit is contained in:
@@ -399,10 +399,7 @@ public sealed partial class AtmosphereSystem
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
private void GridFixTileVacuum(
|
||||
Entity<GridAtmosphereComponent, GasTileOverlayComponent, MapGridComponent, TransformComponent> ent,
|
||||
TileAtmosphere tile,
|
||||
float volume)
|
||||
private void GridFixTileVacuum(TileAtmosphere tile)
|
||||
{
|
||||
DebugTools.AssertNotNull(tile.Air);
|
||||
DebugTools.Assert(tile.Air?.Immutable == false );
|
||||
@@ -416,6 +413,9 @@ public sealed partial class AtmosphereSystem
|
||||
count++;
|
||||
}
|
||||
|
||||
if (count == 0)
|
||||
return;
|
||||
|
||||
var ratio = 1f / count;
|
||||
var totalTemperature = 0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user