Fixed double namespacing .litematic palette blocks

This commit is contained in:
Lucas Dower 2022-10-06 16:39:44 +01:00
parent 660d8bcc31
commit db7c925207

View File

@ -134,9 +134,8 @@ export class Litematic extends IExporter {
private _createBlockStatePalette(blockMapping: BlockMapping) {
const blockStatePalette = Array(Object.keys(blockMapping).length);
for (const block of Object.keys(blockMapping)) {
const index = blockMapping[block];
const blockName = 'minecraft:' + block;
for (const blockName of Object.keys(blockMapping)) {
const index = blockMapping[blockName];
blockStatePalette[index] = { Name: { type: TagType.String, value: blockName } };
}
blockStatePalette[0] = { Name: { type: TagType.String, value: 'minecraft:air' } };