Fix exhaling on salvage maps. (#6678)
This commit is contained in:
parent
e5ac0dbf96
commit
86d1150084
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue