diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java index d13a9f7293..e1d9952d39 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -999,8 +999,11 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta { this.attributeModifiers = HashMultimap.create(); return; } - Iterator> iterator = attributeModifiers.entries().iterator(); + + checkAttributeList(); this.attributeModifiers.clear(); + + Iterator> iterator = attributeModifiers.entries().iterator(); while (iterator.hasNext()) { Map.Entry next = iterator.next();