diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java index 50612a91a1..569a92d319 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java @@ -205,7 +205,7 @@ class CraftMetaPotion extends CraftMetaItem implements PotionMeta { Iterator iterator = customEffects.iterator(); while (iterator.hasNext()) { PotionEffect effect = iterator.next(); - if (effect.getType() == type) { + if (type.equals(effect.getType())) { iterator.remove(); changed = true; }