From d2a85efb26a01b13112ef9980616d577ca57dba0 Mon Sep 17 00:00:00 2001 From: NavidK0 Date: Mon, 14 Mar 2016 01:36:25 -0400 Subject: [PATCH] Fixed java.lang.NoSuchMethodException: net.minecraft.server.v1_9_R1.MobEffectList.fromId(java.lang.Integer) in ReflectionManager --- .../me/libraryaddict/disguise/utilities/ReflectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/ReflectionManager.java b/src/main/java/me/libraryaddict/disguise/utilities/ReflectionManager.java index 49819cf7..1ce2dd4e 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/ReflectionManager.java @@ -116,7 +116,7 @@ public class ReflectionManager { } public static Object getMobEffectList(int id) { - Method nmsMethod = getNmsMethod("MobEffectList", "fromId", Integer.class); + Method nmsMethod = getNmsMethod("MobEffectList", "fromId", Integer.TYPE); try { return nmsMethod.invoke(null, id); } catch (IllegalAccessException | InvocationTargetException e) {