From 253f29f5be72a102c504982df54b0c4cb84cfd42 Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Mon, 17 Mar 2025 16:37:09 +0200 Subject: [PATCH] fix button method patch --- BoneSync/Patching/ButtonTogglePatches.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoneSync/Patching/ButtonTogglePatches.cs b/BoneSync/Patching/ButtonTogglePatches.cs index e254857..e3e5653 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) { - //int hash = __instance.GetHashCode(); + if (!CallPatchedMethods.allowPatchedMethodCall) return true; UnityEventPatch patch = UnityEventPatch.TryGetPatch(__instance); if (patch != null) {