Skip to content

Commit

Permalink
Fix EventListener not being able to listen to EntitySpawnEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Sep 16, 2022
1 parent 425f0df commit 2d60548
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion res/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: RedLib
main: redempt.redlib.RedLib
version: 2022-09-04 18:38
version: 2022-09-16 03:17
author: Redempt
api-version: 1.13
load: STARTUP
4 changes: 1 addition & 3 deletions src/redempt/redlib/misc/EventListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ public EventListener(Plugin plugin, Class<T> eventClass, Consumer<T> handler) {

@EventHandler
public void handleEvent(T event) {
if (event.getClass().equals(eventClass)) {
handler.accept(this, event);
}
handler.accept(this, event);
}

/**
Expand Down

0 comments on commit 2d60548

Please sign in to comment.