mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-27 23:32:59 +00:00
Update to Flightpath 0.0.3, fixes J8 dep
This commit is contained in:
1 parent
4267584e00
commit
162ca75102
1 file changed
+1
-1
@@ -26,7 +26,7 @@ public class AnnotationLocator implements ISubscriberLocator {
|
||||
public @Nonnull Map<Class, Set<Method>> findSubscribers(Object obj) {
|
||||
Map<Class, Set<Method>> methods = new HashMap<Class, Set<Method>>();
|
||||
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<Method>());
|
||||
methods.get(param).add(m);
|
||||
|
||||
Reference in new issue
Block a user