Fix Reflection

This commit is contained in:
sky 2020-04-05 14:00:05 +08:00
parent dc9bf53bce
commit 5c4941f536

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();
}