Jetpack QOL tweaks (#9563)

This commit is contained in:
metalgearsloth
2022-07-09 18:24:48 +10:00
committed by GitHub
parent 7daf4430ac
commit 6acd941ffb
6 changed files with 87 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ public sealed class JetpackSystem : SharedJetpackSystem
protected override bool CanEnable(JetpackComponent component)
{
return TryComp<GasTankComponent>(component.Owner, out var gasTank) && !(gasTank.Air.TotalMoles < component.MoleUsage);
return base.CanEnable(component) && TryComp<GasTankComponent>(component.Owner, out var gasTank) && !(gasTank.Air.TotalMoles < component.MoleUsage);
}
public override void Update(float frameTime)