mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Change unload to deactivate only current plugin (#486)
This commit is contained in:
1 parent
e187d9baf3
commit
d21c8263d0
3 files changed
+3
-3
No files matched your search
@@ -177,7 +177,7 @@ public class Main : BasePlugin
|
||||
private static HashAuth DebugKeyAuth { get; set; }
|
||||
private static ConfigEntry<string> DebugKeyInput { get; set; }
|
||||
|
||||
private Harmony Harmony { get; } = new(PluginGuid);
|
||||
public Harmony Harmony { get; } = new(PluginGuid);
|
||||
|
||||
public static NormalGameOptionsV10 NormalOptions => GameOptionsManager.Instance != null ? GameOptionsManager.Instance.currentNormalGameOptions : null;
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ public static class OptionsMenuBehaviourStartPatch
|
||||
{
|
||||
MainMenuManagerPatch.ShowRightPanelImmediately();
|
||||
|
||||
Harmony.UnpatchAll();
|
||||
Main.Instance.Harmony.UnpatchSelf();
|
||||
Main.Instance.Unload();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ internal static class SwitchGameModePatch
|
||||
}
|
||||
|
||||
Zoom.SetZoomSize(reset: true);
|
||||
Harmony.UnpatchAll();
|
||||
Main.Instance.Harmony.UnpatchSelf();
|
||||
Main.Instance.Unload();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user