Skip to content

Commit d2116bd

Browse files
committed
🛠️ Fix #236
1 parent a0093c7 commit d2116bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/systems/datapackCompiler.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,14 +662,17 @@ export async function compileDataPack(options: {
662662
PathModule.join(options.dataPackFolder, 'pack.mcmeta'),
663663
autoStringify({
664664
pack: {
665+
// FIXME - This number should be a config option.
665666
pack_format: 48,
666667
description: `${Project!.name}. Generated with Animated Java`,
667668
},
668669
})
669670
)
670671

672+
const exportPath =
673+
options.dataPackFolder + (options.dataPackFolder.endsWith('.zip') ? '' : '.zip')
671674
console.time('Writing Zip took')
672-
await writeZip(exportedFiles, options.dataPackFolder)
675+
await writeZip(exportedFiles, exportPath)
673676
console.timeEnd('Writing Zip took')
674677
}
675678

0 commit comments

Comments
 (0)