From 6cf0a5b1d7b3d5410b02c2763a3d08f80ec593d9 Mon Sep 17 00:00:00 2001 From: xKumorio <78680226+xKumorio@users.noreply.github.com> Date: Fri, 9 Aug 2024 22:44:53 +0500 Subject: [PATCH] Wind charge cannot blow up blocks --- .../me/xginko/aef/modules/lagpreventions/StashExplosions.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/StashExplosions.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/StashExplosions.java index 2cfa1237..d94f6026 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/StashExplosions.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/StashExplosions.java @@ -1,5 +1,6 @@ package me.xginko.aef.modules.lagpreventions; +import com.cryptomorin.xseries.XEntityType; import com.destroystokyo.paper.MaterialTags; import com.github.benmanes.caffeine.cache.Cache; import com.github.benmanes.caffeine.cache.Caffeine; @@ -23,6 +24,8 @@ import java.util.Set; import java.util.stream.Collectors; +import static org.bukkit.entity.EntityType.WIND_CHARGE; + public class StashExplosions extends AEFModule implements Listener { private final Cache containerExplosions; @@ -114,6 +117,7 @@ private void onBlockExplode(BlockExplodeEvent event) { @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) private void onEntityExplode(EntityExplodeEvent event) { + if (event.getEntityType().equals(XEntityType.WIND_CHARGE.get())) return; handleExplosion(event.getEntity().getChunk(), event.blockList()); } }