mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-08-13 21:22:51 +02:00
Fixed java.lang.NoSuchMethodException: net.minecraft.server.v1_9_R1.MobEffectList.fromId(java.lang.Integer) in ReflectionManager
This commit is contained in:
parent
24b6ed702b
commit
d2a85efb26
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user