Fix Reflection

master
sky 2020-04-05 14:00:05 +08:00
parent dc9bf53bce
commit 5c4941f536
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ public class SimpleReflection {
try {
Method declaredMethod = nmsClass.getDeclaredMethod(methodName);
methodCached.computeIfAbsent(nmsClass.getName(), name -> Maps.newHashMap()).put(methodName, declaredMethod);
} catch (NoSuchMethodException | NoSuchMethodError ignored) {
} catch (Exception e) {
e.printStackTrace();
}