began work on fixing unbreaking issue
This commit is contained in:
parent
1c61b431fe
commit
b195479579
2 changed files with 11 additions and 1 deletions
|
@ -123,6 +123,11 @@ public class BlockListener implements Listener
|
|||
}
|
||||
}
|
||||
|
||||
else if (item.getEnchantments().containsKey(Enchantment.DURABILITY))
|
||||
{
|
||||
addToDamage = 0;
|
||||
}
|
||||
|
||||
// Update durability
|
||||
dMeta.setDamage(currDur + addToDamage);
|
||||
item.setItemMeta(meta);
|
||||
|
@ -200,6 +205,11 @@ public class BlockListener implements Listener
|
|||
}
|
||||
}
|
||||
|
||||
else if (item.getEnchantments().containsKey(Enchantment.DURABILITY))
|
||||
{
|
||||
addToDamage = 0;
|
||||
}
|
||||
|
||||
// Update durability
|
||||
dMeta.setDamage(currDur + addToDamage);
|
||||
item.setItemMeta(meta);
|
||||
|
|
Reference in a new issue