fix button method patch

This commit is contained in:
2025-03-17 16:37:09 +02:00
parent 64b2005beb
commit 253f29f5be

View File

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