This commit is contained in:
nossr50
2019-06-12 11:05:16 -07:00
parent 0abccd105d
commit 7ab70ba597
3 changed files with 7 additions and 2 deletions

View File

@ -149,7 +149,8 @@ public final class Woodcutting {
*/
protected static boolean handleDurabilityLoss(Set<BlockState> treeFellerBlocks, ItemStack inHand) {
if(inHand.getItemMeta().getEnchants().get(Enchantment.DURABILITY) >= 1) {
if(inHand.getItemMeta().getEnchants().get(Enchantment.DURABILITY) != null
&& inHand.getItemMeta().getEnchants().get(Enchantment.DURABILITY) >= 1) {
return true;
}