Skip to content

Commit

Permalink
Update MetadataConverter.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
PiSaucer authored Jul 23, 2022
1 parent 651d807 commit e0aff68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 !== 8) {
throw new Error("Only supports pack_format 4 (v1.13 or v1.14) or 5 (v1.15 or v1.16) or 6 (>= v1.16.2)!");
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)!");
}

const manifest = {
Expand Down Expand Up @@ -83,4 +83,4 @@ class MetadataConverter extends AbstractConverter {
*/
MetadataConverter.mcmeta = null;

export { MetadataConverter };
export { MetadataConverter };

0 comments on commit e0aff68

Please sign in to comment.