mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Fixed an issue with left clicks
This commit is contained in:
parent
a8a412b457
commit
f079a9878a
@ -100,8 +100,12 @@ public class DurabilityItem {
|
|||||||
return nbtItem;
|
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() {
|
public boolean isBroken() {
|
||||||
return durability <= 0;
|
return maxDurability > 0 && durability <= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isLostWhenBroken() {
|
public boolean isLostWhenBroken() {
|
||||||
|
Loading…
Reference in New Issue
Block a user