From 7feda4b517c890ef396a1d528a0ad1de02e72223 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Tue, 22 Jun 2021 15:37:08 +0200 Subject: [PATCH] Add 1 extra use to capitator tools --- src/dev/w1zzrd/invtweaks/listener/TreeCapitatorListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/w1zzrd/invtweaks/listener/TreeCapitatorListener.java b/src/dev/w1zzrd/invtweaks/listener/TreeCapitatorListener.java index 3a2a74f..038ca47 100644 --- a/src/dev/w1zzrd/invtweaks/listener/TreeCapitatorListener.java +++ b/src/dev/w1zzrd/invtweaks/listener/TreeCapitatorListener.java @@ -82,7 +82,7 @@ public class TreeCapitatorListener implements Listener { } private static int getMaxUses(final ItemStack stack, final Damageable tool) { - return ((stack.getEnchantmentLevel(Enchantment.DURABILITY) + 1) * (stack.getType().getMaxDurability()) - tool.getDamage()); + return ((stack.getEnchantmentLevel(Enchantment.DURABILITY) + 1) * (stack.getType().getMaxDurability()) - tool.getDamage()) + 1; } private static boolean applyDamage(final ItemStack stack, final int brokenBlocks) {