Skip to content

Commit c8bd46c

Browse files
author
ozelot379
committed
Fix pack_format 6
1 parent ef814b7 commit c8bd46c

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## [4.0.1]
4+
- Fix `pack_format` `6`
5+
36
## [4.0.0]
47
- Remove convert piglin
58
- Fix banner pattern black

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@ozelot379/convert-minecraft-java-texture-to-bedrock-api",
33
"type": "module",
44
"productName": "ConvertJavaTextureToBedrockApi",
5-
"version": "4.0.0",
5+
"version": "4.0.1",
66
"description": "API for convert Minecraft Java texture packs to Bedrock texture packs",
77
"keywords": [
88
"Minecraft",

‎src/converter/MetadataConverter.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class MetadataConverter extends AbstractConverter {
4242

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

45-
if (MetadataConverter.mcmeta.pack.pack_format !== 4 && MetadataConverter.mcmeta.pack.pack_format !== 5) {
46-
throw new Error("Only supports pack_format 4 (v1.13 or v1.14) or 5 (v1.15 or v1.16)!");
45+
if (MetadataConverter.mcmeta.pack.pack_format !== 4 && MetadataConverter.mcmeta.pack.pack_format !== 5 && MetadataConverter.mcmeta.pack.pack_format !== 6) {
46+
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)!");
4747
}
4848

4949
const manifest = {

0 commit comments

Comments
 (0)