Skip to content

Commit

Permalink
fix: mod options break with SMLHelper installed
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeTwentyThree committed May 15, 2023
1 parent 514261b commit 0d0edda
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Nautilus/Patchers/OptionsPanelPatcher.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
Expand All @@ -25,7 +25,10 @@ internal static void Patch(Harmony harmony)
{
harmony.PatchAll(typeof(OptionsPanelPatcher));
harmony.PatchAll(typeof(ScrollPosKeeper));
harmony.PatchAll(typeof(ModOptionsHeadingsToggle));
if (!BepInEx.Bootstrap.Chainloader.PluginInfos.ContainsKey("com.ahk1221.smlhelper"))
{
harmony.PatchAll(typeof(ModOptionsHeadingsToggle));
}
}


Expand Down

0 comments on commit 0d0edda

Please sign in to comment.