Fix Reflection
This commit is contained in:
parent
dc9bf53bce
commit
5c4941f536
@ -99,6 +99,7 @@ public class SimpleReflection {
|
|||||||
try {
|
try {
|
||||||
Method declaredMethod = nmsClass.getDeclaredMethod(methodName);
|
Method declaredMethod = nmsClass.getDeclaredMethod(methodName);
|
||||||
methodCached.computeIfAbsent(nmsClass.getName(), name -> Maps.newHashMap()).put(methodName, declaredMethod);
|
methodCached.computeIfAbsent(nmsClass.getName(), name -> Maps.newHashMap()).put(methodName, declaredMethod);
|
||||||
|
} catch (NoSuchMethodException | NoSuchMethodError ignored) {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user