diff --git a/BoneSync/Patching/ButtonTogglePatches.cs b/BoneSync/Patching/ButtonTogglePatches.cs index e3e5653..8c18b5e 100644 --- a/BoneSync/Patching/ButtonTogglePatches.cs +++ b/BoneSync/Patching/ButtonTogglePatches.cs @@ -88,7 +88,7 @@ namespace BoneSync.Patching [HarmonyPatch(nameof(UnityEvent.Invoke)), HarmonyPrefix] private static bool InvokePrefix(UnityEvent __instance) { - if (!CallPatchedMethods.allowPatchedMethodCall) return true; + if (CallPatchedMethods.allowPatchedMethodCall) return true; UnityEventPatch patch = UnityEventPatch.TryGetPatch(__instance); if (patch != null) {