mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 18:24:43 +02:00
2.1.79
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user