Skip to content

Commit

Permalink
fix event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Oct 6, 2024
1 parent 5d177a5 commit 0874204
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void listen(EventPriority eventPriority, EventBusType eventBusType, Closu
GroovyLog.get().error("Event listeners' only parameter should be the Event class you are trying to listen to.");
return;
}
listen(eventPriority, eventBusType, (Class<? extends Event>) eventClass, eventListener);
listen(eventPriority, eventBusType, (Class<? extends Event>) eventClass, eventListener::call);
}

public void listen(Class<? extends Event> eventClass, Closure<?> eventListener) {
Expand Down

0 comments on commit 0874204

Please sign in to comment.