diff options
author | md_5 <git@md-5.net> | 2018-07-17 17:13:55 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-17 17:13:55 +1000 |
commit | 8c9dea83c3ffc341ccec57e978d40559d7a04f94 (patch) | |
tree | 452a073b817c92130dbefa818d53db049a3be1d6 /src/main/java/org | |
parent | 1526726b579646244d3253d87a425a257719644b (diff) | |
download | craftbukkit-8c9dea83c3ffc341ccec57e978d40559d7a04f94.tar craftbukkit-8c9dea83c3ffc341ccec57e978d40559d7a04f94.tar.gz craftbukkit-8c9dea83c3ffc341ccec57e978d40559d7a04f94.tar.lz craftbukkit-8c9dea83c3ffc341ccec57e978d40559d7a04f94.tar.xz craftbukkit-8c9dea83c3ffc341ccec57e978d40559d7a04f94.zip |
SPIGOT-4030: Improve CraftItemStack.hasItemMeta
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java index 4c4f0455..b044e382 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java @@ -553,7 +553,7 @@ public final class CraftItemStack extends ItemStack { @Override public boolean hasItemMeta() { - return hasItemMeta(handle); + return hasItemMeta(handle) && !CraftItemFactory.instance().equals(getItemMeta(), null); } static boolean hasItemMeta(net.minecraft.server.ItemStack item) { |