From 9b0a892e9801659f178dc5bbff6943f305eefd69 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Thu, 24 Oct 2024 12:27:04 +0200 Subject: [PATCH] Move config event handler setup to own function --- Fika.Core/FikaPlugin.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Fika.Core/FikaPlugin.cs b/Fika.Core/FikaPlugin.cs index 835650ec..db8d89bf 100644 --- a/Fika.Core/FikaPlugin.cs +++ b/Fika.Core/FikaPlugin.cs @@ -1,6 +1,7 @@ using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; +using Comfort.Common; using EFT.UI; using Fika.Core.Bundles; using Fika.Core.Console; @@ -230,7 +231,7 @@ protected void Awake() #if GOLDMASTER new TOS_Patch().Enable(); #endif - OfficialVersion.SettingChanged += OfficialVersion_SettingChanged; + SetupConfigEventHandlers(); DisableSPTPatches(); EnableOverridePatches(); @@ -257,6 +258,11 @@ protected void Awake() StartCoroutine(RunChecks()); } + private void SetupConfigEventHandlers() + { + OfficialVersion.SettingChanged += OfficialVersion_SettingChanged; + } + private static void EnableFikaPatches() { new FikaVersionLabel_Patch().Enable();