Skip to content

Commit

Permalink
Merge pull request #198 from project-fika/dev
Browse files Browse the repository at this point in the history
Fix nullref from version check
  • Loading branch information
Lacyway authored Nov 27, 2024
2 parents 248e299 + 8073079 commit 58cc47a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Fika.Core/FikaPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ protected void Awake()

DisableSPTPatches();
EnableOverridePatches();
FixSPTBugPatches();

GetClientConfig();

Expand Down Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions Fika.Core/Utils/FikaModHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 58cc47a

Please sign in to comment.