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:
parent
7fa0529ed4
commit
4fa4f54708
1 changed files with 1 additions and 1 deletions
|
|
@ -671,7 +671,7 @@ function generateCode() {
|
||||||
} else {
|
} else {
|
||||||
let code = "minecraft:armor_stand[minecraft:entity_data=" + parsedTags;
|
let code = "minecraft:armor_stand[minecraft:entity_data=" + parsedTags;
|
||||||
if (customName && mcVersion >= MC_VERSION.v1_21) {
|
if (customName && mcVersion >= MC_VERSION.v1_21) {
|
||||||
code += `,minecraft:custom_name=${generateCustomName()}`
|
code += `,minecraft:custom_name=${NBT.stringify(generateCustomName())}`
|
||||||
}
|
}
|
||||||
return command + code + "] 1";
|
return command + code + "] 1";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue