1
0
Fork 0
mirror of https://github.com/haselkern/Minecraft-ArmorStand.git synced 2026-01-18 14:54:06 +00:00

fix: use stringify on /give command

This commit is contained in:
Gwilhoa 2025-12-28 18:02:19 +01:00
parent 7fa0529ed4
commit 227397cb9d

View file

@ -671,7 +671,7 @@ function generateCode() {
} else {
let code = "minecraft:armor_stand[minecraft:entity_data=" + parsedTags;
if (customName && mcVersion >= MC_VERSION.v1_21) {
code += `,minecraft:custom_name=${generateCustomName()}`
code += `,minecraft:custom_name=${NBT.stringify(generateCustomName())}`
}
return command + code + "] 1";
}