Skip to content

Commit

Permalink
Move config event handler setup to own function
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Oct 24, 2024
1 parent 5982365 commit 9b0a892
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Fika.Core/FikaPlugin.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -230,7 +231,7 @@ protected void Awake()
#if GOLDMASTER
new TOS_Patch().Enable();
#endif
OfficialVersion.SettingChanged += OfficialVersion_SettingChanged;
SetupConfigEventHandlers();

DisableSPTPatches();
EnableOverridePatches();
Expand All @@ -257,6 +258,11 @@ protected void Awake()
StartCoroutine(RunChecks());
}

private void SetupConfigEventHandlers()
{
OfficialVersion.SettingChanged += OfficialVersion_SettingChanged;
}

private static void EnableFikaPatches()
{
new FikaVersionLabel_Patch().Enable();
Expand Down

0 comments on commit 9b0a892

Please sign in to comment.