fix button method patch
This commit is contained in:
@@ -88,7 +88,7 @@ namespace BoneSync.Patching
|
|||||||
[HarmonyPatch(nameof(UnityEvent.Invoke)), HarmonyPrefix]
|
[HarmonyPatch(nameof(UnityEvent.Invoke)), HarmonyPrefix]
|
||||||
private static bool InvokePrefix(UnityEvent __instance)
|
private static bool InvokePrefix(UnityEvent __instance)
|
||||||
{
|
{
|
||||||
//int hash = __instance.GetHashCode();
|
if (!CallPatchedMethods.allowPatchedMethodCall) return true;
|
||||||
UnityEventPatch<ButtonToggle> patch = UnityEventPatch<ButtonToggle>.TryGetPatch(__instance);
|
UnityEventPatch<ButtonToggle> patch = UnityEventPatch<ButtonToggle>.TryGetPatch(__instance);
|
||||||
if (patch != null)
|
if (patch != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user