diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSuspiciousStew.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSuspiciousStew.java index 1613fbfc19..7ebc488fae 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSuspiciousStew.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSuspiciousStew.java @@ -223,7 +223,7 @@ public class CraftMetaSuspiciousStew extends CraftMetaItem implements Suspicious @Override boolean notUncommon(CraftMetaItem meta) { - return super.notUncommon(meta) && (meta instanceof CraftMetaPotion || isStewEmpty()); + return super.notUncommon(meta) && (meta instanceof CraftMetaSuspiciousStew || isStewEmpty()); } @Override diff --git a/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java b/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java index b07a3051ca..86a279e8ec 100644 --- a/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java +++ b/src/test/java/org/bukkit/craftbukkit/inventory/ItemMetaTest.java @@ -405,6 +405,10 @@ public class ItemMetaTest extends AbstractTestingBase { final ItemStack blank = new ItemStack(Material.STONE); final ItemStack craftBlank = CraftItemStack.asCraftCopy(blank); + // Check that equality and similarity works for each meta implementation + assertThat(name, provider.stack(), is(provider.stack())); + assertThat(name, provider.stack().isSimilar(provider.stack()), is(true)); + downCastTest(name, provider.stack(), blank); blank.setItemMeta(blank.getItemMeta()); downCastTest(name, provider.stack(), blank);