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

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
CraftBukkit/Spigot
2014-01-14 18:10:34 -06:00
parent 75d5bdc98c
commit 3f3ce7034c

View File

@@ -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() {