From 22f598753e8f5dfb28594b5c27dfe061365f2df1 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 8 Feb 2023 21:52:07 +0100 Subject: [PATCH] Fix getTypedMethod recursion --- SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java b/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java index c3100b2..fc1e8c1 100644 --- a/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java +++ b/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java @@ -251,7 +251,7 @@ public final class Reflection { // Search in every superclass if (clazz.getSuperclass() != null) - return getMethod(clazz.getSuperclass(), methodName, params); + return getTypedMethod(clazz.getSuperclass(), methodName, returnType, params); throw new IllegalStateException(String.format("Unable to find method %s (%s).", methodName, Arrays.asList(params))); }