This commit is contained in:
biglyderv 2024-11-17 01:24:51 -05:00
parent a003fc2446
commit 312146b84c
2 changed files with 3 additions and 1 deletions

View file

@ -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) {