public void OnDisabled() { Config = null; _harmony.UnpatchAll(HarmonyId); _harmony = null; }
public void OnEnabled() { if (_harmony != null) { return; } _harmony = HarmonyInstance.Create(HarmonyId); _harmony.PatchAll(GetType().Assembly); Config = Configuration <TrueLodTogglerConfiguration> .Load(); }