This commit is contained in:
parent
e0f76c598c
commit
1568c0a64a
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ public class PlayerBlockEvent implements Listener {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|
||||||
p.sendBlockChange(event.getBlock().getLocation(), Material.AIR.createBlockData());
|
p.sendBlockChange(event.getBlock().getLocation(), Material.AIR.createBlockData());
|
||||||
// TODO: check if it remove durability from items
|
// TEST: check if it remove durability from items
|
||||||
p.playSound(p.getLocation(), event.getBlock().getBlockSoundGroup().getBreakSound(), 1, 1);
|
p.playSound(p.getLocation(), event.getBlock().getBlockSoundGroup().getBreakSound(), 1, 1);
|
||||||
event.setDropItems(true);
|
event.setDropItems(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue