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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

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);