1
0
Fork 0
mirror of https://github.com/haselkern/Minecraft-ArmorStand.git synced 2026-01-01 22:24:07 +00:00

fix: use stringify on /give command (#62)

This commit is contained in:
Guilheim Chataing 2026-01-01 19:18:29 +01:00 committed by GitHub
parent 7fa0529ed4
commit 4fa4f54708
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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";
}