From 162ca7510264913b52342a68ae2da0548f48b41a Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Sat, 2 Jan 2016 19:20:23 +0100 Subject: [PATCH] Update to Flightpath 0.0.3, fixes J8 dep --- .../mantle/pulsar/flightpath/lib/AnnotationLocator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/slimeknights/mantle/pulsar/flightpath/lib/AnnotationLocator.java b/src/main/java/slimeknights/mantle/pulsar/flightpath/lib/AnnotationLocator.java index 19963a3..298fda2 100755 --- a/src/main/java/slimeknights/mantle/pulsar/flightpath/lib/AnnotationLocator.java +++ b/src/main/java/slimeknights/mantle/pulsar/flightpath/lib/AnnotationLocator.java @@ -26,7 +26,7 @@ public class AnnotationLocator implements ISubscriberLocator { public @Nonnull Map> findSubscribers(Object obj) { Map> methods = new HashMap>(); for (Method m : obj.getClass().getMethods()) { - if (m.isAnnotationPresent(annotation) && m.getParameterCount() == 1) { + if (m.isAnnotationPresent(annotation) && m.getParameterTypes().length == 1) { Class param = m.getParameterTypes()[0]; if (!methods.containsKey(param)) methods.put(param, new HashSet()); methods.get(param).add(m);