Fix ItemStack display name serialization

This commit is contained in:
Kieran Wallbanks 2021-03-25 13:25:19 +00:00
parent c3adf3ff67
commit cd06fbdfaa

View File

@ -317,7 +317,7 @@ public final class NBTUtils {
if (hasDisplayName || hasLore) {
NBTCompound displayNBT = new NBTCompound();
if (hasDisplayName) {
final String name = itemStack.getDisplayName().toString();
final String name = MinecraftServer.getSerializationManager().serialize(itemStack.getDisplayName());
displayNBT.setString("Name", name);
}