From 7d8be939d59738282dfec52e80f83c626f2ac132 Mon Sep 17 00:00:00 2001 From: Harry Devane <harry@harrydevane.com> Date: Tue, 4 Apr 2023 22:40:31 +0100 Subject: [PATCH] Fix ignoreCancelled having no effect on events registered by direct EventExecutor (#9099) --- patches/api/Paper-Plugins.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/api/Paper-Plugins.patch b/patches/api/Paper-Plugins.patch index dbbc7dea42..8ff6a0d08b 100644 --- a/patches/api/Paper-Plugins.patch +++ b/patches/api/Paper-Plugins.patch @@ -1685,7 +1685,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 Preconditions.checkArgument(priority != null, "Priority cannot be null"); Preconditions.checkArgument(executor != null, "Executor cannot be null"); Preconditions.checkArgument(plugin != null, "Plugin cannot be null"); -+ if (true) {this.paperPluginManager.registerEvent(event, listener, priority, executor, plugin); return;} // Paper ++ if (true) {this.paperPluginManager.registerEvent(event, listener, priority, executor, plugin, ignoreCancelled); return;} // Paper if (!plugin.isEnabled()) { throw new IllegalPluginAccessException("Plugin attempted to register " + event + " while not enabled");