From 4d4d2ab0871f5bcc66d25a7b24bcf1c36fb4e371 Mon Sep 17 00:00:00 2001 From: Traks <58818927+traksag@users.noreply.github.com> Date: Tue, 28 Jun 2022 21:15:09 +0200 Subject: [PATCH] Ignore cancelled projectile launch events (#3709) --- .../plotsquared/bukkit/listener/ProjectileEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/ProjectileEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/ProjectileEventListener.java index 2f37df132..743649a80 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/ProjectileEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/ProjectileEventListener.java @@ -89,7 +89,7 @@ public class ProjectileEventListener implements Listener { } } - @EventHandler + @EventHandler(ignoreCancelled = true) public void onProjectileLaunch(ProjectileLaunchEvent event) { Projectile entity = event.getEntity(); ProjectileSource shooter = entity.getShooter();