public override void OnDisabled() { UnregisterEvents(); HarmonyInstance.UnpatchAll(HarmonyInstance.Id); Instance = null; base.OnDisabled(); }
public override void OnEnabled() { Instance = this; RegisterEvents(); HarmonyInstance = new Harmony($"steven4547466.antiLag-{DateTime.UtcNow.Ticks}"); HarmonyInstance.PatchAll(); base.OnEnabled(); }