Skip to content

Commit

Permalink
GLO: Fix NRE if system is completely disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
AuriRex committed Oct 12, 2023
1 parent 980685c commit b7d19e5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public override void OnDisable()

public override void OnButtonPressed(ButtonSetting setting)
{
if (Settings.CompletelyDisable)
return;

if (setting.ButtonID.Contains(nameof(GlassLiquidOverrideSettings.ApplyDisinfectButton)))
ScreenLiquidManager.DirectApply(ScreenLiquidSettingName.disinfectionStation_Apply, new UnityEngine.Vector2(0.5f, 0.5f), UnityEngine.Vector2.zero);
}
Expand Down

0 comments on commit b7d19e5

Please sign in to comment.