Breaks boom bow when durability = 0

This commit is contained in:
alisolarflare 2016-11-26 02:23:11 -05:00
parent 68f8a3fd77
commit 30686980e6

View file

@ -59,6 +59,9 @@ public class BoomBowListener implements Listener {
}else{
player.getInventory().remove(tntStack);
}
if (bow.getDurability() < 0){
player.getInventory().clear(player.getInventory().getHeldItemSlot());
}
}else{
return;