Fixed wind charges incorrectly logging false #explosion data (fixes #555)

This commit is contained in:
Intelli 2024-06-17 18:06:04 -06:00
parent 057a635030
commit 3e8083becf

View File

@ -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";