diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java index e287f02e30..22a5bc1a64 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -909,8 +909,10 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta { ItemEnchantments.a list = new ItemEnchantments.a(ItemEnchantments.EMPTY); - for (Map.Entry entry : enchantments.entrySet()) { - list.set(CraftEnchantment.bukkitToMinecraftHolder(entry.getKey()), entry.getValue()); + if (enchantments != null) { + for (Map.Entry entry : enchantments.entrySet()) { + list.set(CraftEnchantment.bukkitToMinecraftHolder(entry.getKey()), entry.getValue()); + } } list.showInTooltip = !hasItemFlag(itemFlag);