Fixed java.lang.NoSuchMethodException: net.minecraft.server.v1_9_R1.MobEffectList.fromId(java.lang.Integer) in ReflectionManager
This commit is contained in:
		| @@ -116,7 +116,7 @@ public class ReflectionManager { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     public static Object getMobEffectList(int id) { |     public static Object getMobEffectList(int id) { | ||||||
|         Method nmsMethod = getNmsMethod("MobEffectList", "fromId", Integer.class); |         Method nmsMethod = getNmsMethod("MobEffectList", "fromId", Integer.TYPE); | ||||||
|         try { |         try { | ||||||
|             return nmsMethod.invoke(null, id); |             return nmsMethod.invoke(null, id); | ||||||
|         } catch (IllegalAccessException | InvocationTargetException e) { |         } catch (IllegalAccessException | InvocationTargetException e) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user