Fix exhaling on salvage maps. (#6678)

This commit is contained in:
Leon Friedrich
2022-02-13 11:08:54 +13:00
committed by GitHub
parent e5ac0dbf96
commit 86d1150084

View File

@@ -139,7 +139,10 @@ namespace Content.Server.Body.Systems
if (ev.Gas == null)
{
ev.Gas = _atmosSys.GetTileMixture(Transform(uid).Coordinates);
if (ev.Gas == null) return;
// Walls and grids without atmos comp return null. I guess it makes sense to not be able to exhale in walls,
// but this also means you cannot exhale on some grids.
ev.Gas ??= GasMixture.SpaceGas;
}
var outGas = new GasMixture(ev.Gas.Volume);