mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01: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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user