public override void Dispose() { if (mousePatched) { mousePatched = false; System.Diagnostics.Debug.WriteLine("MouseSwapper: Unpatching methods"); HarmonyPatcher.Unpatch(); } }
public override void Start(ICoreAPI api) { if (!mousePatched) { mousePatched = true; System.Diagnostics.Debug.WriteLine("MouseSwapper: Patching methods"); HarmonyPatcher.Patch(); } }