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()); } }