fixes
This commit is contained in:
parent
a003fc2446
commit
312146b84c
2 changed files with 3 additions and 1 deletions
Binary file not shown.
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue