Use distinct action labels for toggling internals on and off. (#36073)
* Use distinct action labels for toggling internals on and off. * Implement specific actions for enabling/disabling internals Avoids potential confusing race conditions where two people might perform the "Toggle Internals On" action an the same person, which would have jsut toggled twice. * If no gas tank, will give popup --------- Co-authored-by: beck-thompson <beck314159@hotmail.com>
This commit is contained in:
@@ -50,7 +50,7 @@ public sealed class InternalsSystem : SharedInternalsSystem
|
||||
if (!_respirator.CanMetabolizeGas(uid, tank.Value.Comp.Air))
|
||||
return;
|
||||
|
||||
ToggleInternals(uid, uid, force: false, component);
|
||||
ToggleInternals(uid, uid, force: false, component, ToggleMode.On);
|
||||
}
|
||||
|
||||
private void OnInhaleLocation(Entity<InternalsComponent> ent, ref InhaleLocationEvent args)
|
||||
|
||||
Reference in New Issue
Block a user