From 0079ef41518e7d8b60771624893756ad05eea950 Mon Sep 17 00:00:00 2001 From: Lightling Date: Mon, 16 Sep 2019 19:24:52 -0400 Subject: [PATCH] fixed durability reduction --- plugin/src/lightling/gibsoniacraft/util/BlockListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/src/lightling/gibsoniacraft/util/BlockListener.java b/plugin/src/lightling/gibsoniacraft/util/BlockListener.java index 6026329..22d3a84 100644 --- a/plugin/src/lightling/gibsoniacraft/util/BlockListener.java +++ b/plugin/src/lightling/gibsoniacraft/util/BlockListener.java @@ -109,7 +109,7 @@ public class BlockListener implements Listener // Used for determining durability loss - int addToDamage = 0; + int addToDamage = 1; // Do extra damage to durability if extra blocks were broken if (success && !item.getEnchantments().containsKey(Enchantment.DURABILITY)) @@ -186,7 +186,7 @@ public class BlockListener implements Listener } // Used for determining durability loss - int addToDamage = 0; + int addToDamage = 1; // Do extra damage to durability if extra blocks were broken if (success && !item.getEnchantments().containsKey(Enchantment.DURABILITY)) @@ -194,7 +194,7 @@ public class BlockListener implements Listener addToDamage = 2; // Diamond tools take less damage - if (itemType == Material.DIAMOND_PICKAXE || itemType == Material.DIAMOND_SHOVEL) + if (itemType == Material.DIAMOND_AXE) { addToDamage = 1; }