Skip to content
Permalink
Browse files

Remove check to hasDamage due to spigot API issue

  • Loading branch information
me4502 committed Dec 3, 2019
1 parent c2b53eb commit c9d8182036fc1b541d02eb1741496a2607c1a550
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/util/ItemUtil.java
@@ -991,7 +991,7 @@ private static boolean shouldDamageItem(ItemStack stack) {
public static void damageHeldItem(Player player) {
ItemStack heldItem = player.getInventory().getItemInMainHand();
ItemMeta meta = heldItem.getItemMeta();
if(meta instanceof Damageable && ((Damageable) meta).hasDamage() && getMaxDurability(heldItem.getType()) > 0) {
if(meta instanceof Damageable && getMaxDurability(heldItem.getType()) > 0) {
if (!shouldDamageItem(heldItem)) {
return;
}

0 comments on commit c9d8182

Please sign in to comment.
You can’t perform that action at this time.