Fixed java.lang.NoSuchMethodException: net.minecraft.server.v1_9_R1.MobEffectList.fromId(java.lang.Integer) in ReflectionManager

This commit is contained in:
NavidK0 2016-03-14 01:36:25 -04:00
parent 24b6ed702b
commit d2a85efb26

View File

@ -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) {