mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
Update to Minecraft 1.8
For more information please see http://www.spigotmc.org/ By: md_5 <git@md-5.net>
This commit is contained in:
@@ -232,11 +232,12 @@ public final class JavaPluginLoader implements PluginLoader {
|
||||
Set<Method> methods;
|
||||
try {
|
||||
Method[] publicMethods = listener.getClass().getMethods();
|
||||
methods = new HashSet<Method>(publicMethods.length, Float.MAX_VALUE);
|
||||
Method[] privateMethods = listener.getClass().getDeclaredMethods();
|
||||
methods = new HashSet<Method>(publicMethods.length + privateMethods.length, 1.0f);
|
||||
for (Method method : publicMethods) {
|
||||
methods.add(method);
|
||||
}
|
||||
for (Method method : listener.getClass().getDeclaredMethods()) {
|
||||
for (Method method : privateMethods) {
|
||||
methods.add(method);
|
||||
}
|
||||
} catch (NoClassDefFoundError e) {
|
||||
|
Reference in New Issue
Block a user