mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
actually move the guard out
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user