diff --git a/app/bin/main/net/xuyezo/main/Handler.class b/app/bin/main/net/xuyezo/main/Handler.class index 2a9be82..ece6714 100644 Binary files a/app/bin/main/net/xuyezo/main/Handler.class and b/app/bin/main/net/xuyezo/main/Handler.class differ diff --git a/app/src/main/java/net/xuyezo/main/Handler.java b/app/src/main/java/net/xuyezo/main/Handler.java index 97280ea..396a967 100644 --- a/app/src/main/java/net/xuyezo/main/Handler.java +++ b/app/src/main/java/net/xuyezo/main/Handler.java @@ -11,12 +11,14 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.BlockExplodeEvent; +import org.bukkit.event.entity.EntityExplodeEvent; import org.bukkit.inventory.ItemStack; public class Handler implements Listener { @EventHandler - private void onBlockExplode(BlockExplodeEvent e) { + private void onBlockExplode(EntityExplodeEvent e) { + e.setCancelled(true); for (Block b : e.blockList()) { Location loc = b.getLocation(); if (b.getType() == Material.STONE) {