We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0093c7 commit d2116bdCopy full SHA for d2116bd
src/systems/datapackCompiler.ts
@@ -662,14 +662,17 @@ export async function compileDataPack(options: {
662
PathModule.join(options.dataPackFolder, 'pack.mcmeta'),
663
autoStringify({
664
pack: {
665
+ // FIXME - This number should be a config option.
666
pack_format: 48,
667
description: `${Project!.name}. Generated with Animated Java`,
668
},
669
})
670
)
671
672
+ const exportPath =
673
+ options.dataPackFolder + (options.dataPackFolder.endsWith('.zip') ? '' : '.zip')
674
console.time('Writing Zip took')
- await writeZip(exportedFiles, options.dataPackFolder)
675
+ await writeZip(exportedFiles, exportPath)
676
console.timeEnd('Writing Zip took')
677
}
678
0 commit comments