This commit is contained in:
2025-03-17 16:37:26 +02:00
parent 253f29f5be
commit f06af0647d

View File

@@ -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<ButtonToggle> patch = UnityEventPatch<ButtonToggle>.TryGetPatch(__instance);
if (patch != null)
{