From 3e8083becf119ff2b136e19cdb84bedc3a100075 Mon Sep 17 00:00:00 2001 From: Intelli Date: Mon, 17 Jun 2024 18:06:04 -0600 Subject: [PATCH] Fixed wind charges incorrectly logging false #explosion data (fixes #555) --- .../coreprotect/listener/entity/EntityExplodeListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/coreprotect/listener/entity/EntityExplodeListener.java b/src/main/java/net/coreprotect/listener/entity/EntityExplodeListener.java index e2c677e..4490777 100755 --- a/src/main/java/net/coreprotect/listener/entity/EntityExplodeListener.java +++ b/src/main/java/net/coreprotect/listener/entity/EntityExplodeListener.java @@ -24,6 +24,10 @@ public final class EntityExplodeListener extends Queue implements Listener { @EventHandler(priority = EventPriority.MONITOR) protected void onEntityExplode(EntityExplodeEvent event) { Entity entity = event.getEntity(); + if (entity.getType().name().equals("WIND_CHARGE")) { + return; + } + World world = event.getLocation().getWorld(); String user = "#explosion";