mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-03 14:01:58 +01:00
Fix ItemStack display name serialization
This commit is contained in:
parent
c3adf3ff67
commit
cd06fbdfaa
@ -317,7 +317,7 @@ public final class NBTUtils {
|
|||||||
if (hasDisplayName || hasLore) {
|
if (hasDisplayName || hasLore) {
|
||||||
NBTCompound displayNBT = new NBTCompound();
|
NBTCompound displayNBT = new NBTCompound();
|
||||||
if (hasDisplayName) {
|
if (hasDisplayName) {
|
||||||
final String name = itemStack.getDisplayName().toString();
|
final String name = MinecraftServer.getSerializationManager().serialize(itemStack.getDisplayName());
|
||||||
displayNBT.setString("Name", name);
|
displayNBT.setString("Name", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user