public static void patch() { if (patched || !(patched = true)) { return; } if (!HarmonyHelper.isPatchedBy(typeof(ErrorMessage).method("_AddMessage"), nameof(messagePatch))) // patching this only once { HarmonyHelper.patch(); } }
public static void patch() { HarmonyHelper.patch(); }