Skip to content

Commit

Permalink
Update MetadataConverter.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
PiSaucer authored Dec 4, 2023
1 parent 86c9733 commit ac1f30b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/converter/MetadataConverter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class MetadataConverter extends AbstractConverter {

MetadataConverter.mcmeta = JSON.parse((await this.output.read(from)).toString("utf8").trim()); // trim it to supports UF8 files with 'BOOM' at the beginning

if (MetadataConverter.mcmeta.pack.pack_format !== 4 && MetadataConverter.mcmeta.pack.pack_format !== 5 && MetadataConverter.mcmeta.pack.pack_format !== 6 && MetadataConverter.mcmeta.pack.pack_format !== 7 && MetadataConverter.mcmeta.pack.pack_format !== 8 && MetadataConverter.mcmeta.pack.pack_format !== 9) {
throw new Error("Only supports pack_format 4 (v.13–1.14.4), 5 (v.15–1.16.1), 6 (v1.16.2-.16.5), 7 (v1.17), 8(v1.18) or 9(v1.19)!");
if (MetadataConverter.mcmeta.pack.pack_format < 4 ) {
throw new Error("Only supports pack_format 4 (v.13–1.14.4), 5 (v.15–1.16.1), 6 (v1.16.2-.16.5), 7 (v1.17), 8(v1.18), or 9(v1.19)!");
}

const manifest = {
Expand Down

0 comments on commit ac1f30b

Please sign in to comment.