From 8410ac51c31358d8bfc8745295d2563dbc3fc6a2 Mon Sep 17 00:00:00 2001 From: TheMode Date: Sun, 15 Aug 2021 20:12:10 +0200 Subject: [PATCH] Fix enchantment nbt writing --- src/main/java/net/minestom/server/utils/NBTUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/utils/NBTUtils.java b/src/main/java/net/minestom/server/utils/NBTUtils.java index 785914d03..01a1c27c2 100644 --- a/src/main/java/net/minestom/server/utils/NBTUtils.java +++ b/src/main/java/net/minestom/server/utils/NBTUtils.java @@ -103,10 +103,9 @@ public final class NBTUtils { for (Map.Entry entry : enchantmentMap.entrySet()) { final Enchantment enchantment = entry.getKey(); final short level = entry.getValue(); - enchantList.add(new NBTCompound() .setShort("lvl", level) - .setString("id", "minecraft:" + enchantment.name().toLowerCase()) + .setString("id", enchantment.name()) ); } nbt.set(listName, enchantList);