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