Fix atmos NaN error (#26441)

* Fix atmos NAN error

* Remove redundant yaml entries
This commit is contained in:
Leon Friedrich
2024-03-26 15:44:56 +11:00
committed by GitHub
parent 51a02c98fa
commit fdb4a61487
16 changed files with 43 additions and 25 deletions

View File

@@ -78,12 +78,13 @@ public partial class AtmosphereSystem
if (!_airtightQuery.TryGetComponent(ent, out var airtight))
continue;
fixVacuum |= airtight.FixVacuum;
if(!airtight.AirBlocked)
continue;
blockedDirs |= airtight.AirBlockedDirection;
noAirWhenBlocked |= airtight.NoAirWhenFullyAirBlocked;
fixVacuum |= airtight.FixVacuum;
if (blockedDirs == AtmosDirection.All && noAirWhenBlocked && fixVacuum)
break;