diff --git a/Fika.Core/FikaPlugin.cs b/Fika.Core/FikaPlugin.cs index c5695cd3..0642513a 100644 --- a/Fika.Core/FikaPlugin.cs +++ b/Fika.Core/FikaPlugin.cs @@ -237,7 +237,6 @@ protected void Awake() DisableSPTPatches(); EnableOverridePatches(); - FixSPTBugPatches(); GetClientConfig(); @@ -737,9 +736,9 @@ private void DisableSPTPatches() new SendPlayerScavProfileToServerAfterRaidPatch().Disable(); } - private void FixSPTBugPatches() + public void FixSPTBugPatches() { - if(ModHandler.SPTCoreVersion == Version.Parse("3.10.0")) + if (ModHandler.SPTCoreVersion.ToString() == "3.10.0") { new FixAirdropCrashPatch().Disable(); new FixAirdropCrashPatch_Override().Enable(); diff --git a/Fika.Core/Utils/FikaModHandler.cs b/Fika.Core/Utils/FikaModHandler.cs index 117c89b1..4e8ae8df 100644 --- a/Fika.Core/Utils/FikaModHandler.cs +++ b/Fika.Core/Utils/FikaModHandler.cs @@ -48,6 +48,7 @@ public void VerifyMods() if (pluginInfo.Metadata.GUID == "com.SPT.core") { SPTCoreVersion = pluginInfo.Metadata.Version; + FikaPlugin.Instance.FixSPTBugPatches(); } CheckSpecialMods(pluginInfo.Metadata.GUID);