fix: missing id property in save schem dialog

This commit is contained in:
trafficlunar 2025-01-11 19:36:07 +00:00
parent 0c0251426b
commit b48d691573

View file

@ -58,7 +58,7 @@ function SaveLitematic({ close }: DialogProps) {
.map(([key, value]) => `${key}=${value}`) .map(([key, value]) => `${key}=${value}`)
.join(",")}]` .join(",")}]`
: ""; : "";
return `minecraft:${blockInfo}${properties}`; return `minecraft:${blockInfo.id}${properties}`;
}) })
) )
).reduce<Record<string, nbt.Int32<number>>>((acc, blockName, index) => { ).reduce<Record<string, nbt.Int32<number>>>((acc, blockName, index) => {