Consider repair cost when checking ItemMeta emptiness. Fixes BUKKIT-5304

This commit is contained in:
Wesley Wolfe committed 2014-01-14 18:15:04 -06:00
1 parent 1f9f6a51c2
commit fd65b29a0c
1 file changed
+1 -1
@@ -421,7 +421,7 @@ class CraftMetaItem implements ItemMeta, Repairable {
@Overridden
boolean isEmpty() {
return !(hasDisplayName() || hasEnchants() || hasLore() || hasAttributes());
return !(hasDisplayName() || hasEnchants() || hasLore() || hasAttributes() || hasRepairCost());
}
public String getDisplayName() {