From 2e0627242c4eb8352e28ba03dd07319aab885da2 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 9 Jun 2021 06:20:42 +0200 Subject: [PATCH] Fix build --- .../api/bungeepluginmanager/ModifiedPluginEventBus.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/md_5/bungee/api/bungeepluginmanager/ModifiedPluginEventBus.java b/src/net/md_5/bungee/api/bungeepluginmanager/ModifiedPluginEventBus.java index 2beb11e..60c33ac 100644 --- a/src/net/md_5/bungee/api/bungeepluginmanager/ModifiedPluginEventBus.java +++ b/src/net/md_5/bungee/api/bungeepluginmanager/ModifiedPluginEventBus.java @@ -22,6 +22,7 @@ package net.md_5.bungee.api.bungeepluginmanager; import net.md_5.bungee.api.event.AsyncEvent; import net.md_5.bungee.api.plugin.Plugin; import net.md_5.bungee.event.EventBus; +import net.md_5.bungee.event.EventExceptionHandler; import java.util.Collections; import java.util.Set; @@ -45,13 +46,13 @@ public final class ModifiedPluginEventBus extends EventBus { } @Override - public void post(Object event) { + public void post(T event, EventExceptionHandler exceptionHandler) { if (event instanceof AsyncEvent) { synchronized (LOCK) { UNCOMPLETED_EVENTS.add((AsyncEvent) event); } } - super.post(event); + super.post(event, exceptionHandler); } }