Breaks boom bow when durability = 0
This commit is contained in:
parent
68f8a3fd77
commit
30686980e6
1 changed files with 110 additions and 107 deletions
|
@ -59,6 +59,9 @@ public class BoomBowListener implements Listener {
|
||||||
}else{
|
}else{
|
||||||
player.getInventory().remove(tntStack);
|
player.getInventory().remove(tntStack);
|
||||||
}
|
}
|
||||||
|
if (bow.getDurability() < 0){
|
||||||
|
player.getInventory().clear(player.getInventory().getHeldItemSlot());
|
||||||
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue