Consider repair cost when checking ItemMeta emptiness. Fixes BUKKIT-5304
This commit is contained in:
parent
1f9f6a51c2
commit
fd65b29a0c
@ -421,7 +421,7 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
|||||||
|
|
||||||
@Overridden
|
@Overridden
|
||||||
boolean isEmpty() {
|
boolean isEmpty() {
|
||||||
return !(hasDisplayName() || hasEnchants() || hasLore() || hasAttributes());
|
return !(hasDisplayName() || hasEnchants() || hasLore() || hasAttributes() || hasRepairCost());
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDisplayName() {
|
public String getDisplayName() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user