Fix Respirator Asserts (#38911)
* Fix errors * Cleanup CanMetabolizeInhaledAir * Wait no don't do that * Revert changes for real * Fix * Code cleanup and some safety rails * Better tests and also comments * Better comments --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2715933a46
commit
535646aefb
@@ -48,7 +48,7 @@ public sealed class InternalsSystem : SharedInternalsSystem
|
||||
return;
|
||||
|
||||
// Could the entity metabolise the air in the linked gas tank?
|
||||
if (!_respirator.CanMetabolizeGas(uid, tank.Value.Comp.Air))
|
||||
if (!_respirator.CanMetabolizeInhaledAir(uid, tank.Value.Comp.Air))
|
||||
return;
|
||||
|
||||
ToggleInternals(uid, uid, force: false, component, ToggleMode.On);
|
||||
|
||||
Reference in New Issue
Block a user