actually move the guard out

This commit is contained in:
Az committed 2026-11-18 01:42:30 -05:00
1 parent c013599127
commit 5a09d3c996
1 file changed
+3 -4
@@ -162,7 +162,9 @@ public abstract class ModdedOption<T>(string groupPrefix, string title, T defaul
Rpc<SyncGameOptionsRpc>.Instance.Send(PlayerControl.LocalPlayer, new MiraOptionNetData(true, [GetNetData()]), true);
}
ShowNotif();
if (ShowNotification && HudManager.InstanceExists)
ShowNotif();
OnValueChanged(_value);
ShowNotification = true;
}
@@ -266,9 +268,6 @@ public abstract class ModdedOption<T>(string groupPrefix, string title, T defaul
/// </summary>
protected virtual void ShowNotif()
{
if (!ShowNotification || !HudManager.InstanceExists)
return;
ModdedOptionsManager.AddSettingsChangeMessage(
HudManager.Instance.Notifier,
StringName,