diff options
author | Wesley Wolfe <weswolf@aol.com> | 2014-01-14 18:10:34 -0600 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2014-01-14 18:15:04 -0600 |
commit | fd65b29a0c6164d8bb798031a8d536750ee6e5ae (patch) | |
tree | 268ebd97f4473f326e3ed8c3d6c7b5245970af0e /src | |
parent | 1f9f6a51c269e35d2c660164d797aebf793cdee7 (diff) | |
download | craftbukkit-fd65b29a0c6164d8bb798031a8d536750ee6e5ae.tar craftbukkit-fd65b29a0c6164d8bb798031a8d536750ee6e5ae.tar.gz craftbukkit-fd65b29a0c6164d8bb798031a8d536750ee6e5ae.tar.lz craftbukkit-fd65b29a0c6164d8bb798031a8d536750ee6e5ae.tar.xz craftbukkit-fd65b29a0c6164d8bb798031a8d536750ee6e5ae.zip |
Consider repair cost when checking ItemMeta emptiness. Fixes BUKKIT-5304
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java index da8e7773..7d4114c2 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -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() { |