diff --git a/res/plugin.yml b/res/plugin.yml index 9d7bf40..b06377e 100755 --- a/res/plugin.yml +++ b/res/plugin.yml @@ -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 diff --git a/src/redempt/redlib/misc/EventListener.java b/src/redempt/redlib/misc/EventListener.java index 783ed30..a861308 100644 --- a/src/redempt/redlib/misc/EventListener.java +++ b/src/redempt/redlib/misc/EventListener.java @@ -109,9 +109,7 @@ public EventListener(Plugin plugin, Class eventClass, Consumer handler) { @EventHandler public void handleEvent(T event) { - if (event.getClass().equals(eventClass)) { - handler.accept(this, event); - } + handler.accept(this, event); } /**