From 138a58b21232608fef35305a2d5cc0d0aa1890a0 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 15 Jan 2023 17:56:23 +0100 Subject: [PATCH] Fix parameterized parameterized Reflection --- 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 7348bcf..c3100b2 100644 --- a/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java +++ b/SpigotCore_Main/src/com/comphenix/tinyprotocol/Reflection.java @@ -189,7 +189,7 @@ public final class Reflection { Type[] arguments = ((ParameterizedType)field.getGenericType()).getActualTypeArguments(); for(int i = 0; i < parameters.length; i++) { - if(arguments[i] != parameters[i]) + if(arguments[i] instanceof ParameterizedType ? ((ParameterizedType) arguments[i]).getRawType() != parameters[i] : arguments[i] != parameters[i]) return false; } }