Fixed an issue with left clicks

This commit is contained in:
Indyuce 2022-02-26 12:11:10 +01:00
parent a8a412b457
commit f079a9878a

View File

@ -100,8 +100,12 @@ public class DurabilityItem {
return nbtItem;
}
/**
* @return If both this is a VALID custom durability item and if the item is broken.
* This will return <code>false</code> if it is not a valid item
*/
public boolean isBroken() {
return durability <= 0;
return maxDurability > 0 && durability <= 0;
}
public boolean isLostWhenBroken() {