Fix enchantment nbt writing

This commit is contained in:
TheMode 2021-08-15 20:12:10 +02:00
parent b6ab689b10
commit 8410ac51c3

View File

@ -103,10 +103,9 @@ public final class NBTUtils {
for (Map.Entry<Enchantment, Short> 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);