1
0
mirror of https://github.com/GeyserMC/PackConverter.git synced 2025-12-19 14:59:21 +00:00

Update MetadataConverter.java (#10)

Co-authored-by: casper <connollynh@gmail.com>
This commit is contained in:
Booquefius
2021-10-16 16:57:47 -04:00
committed by GitHub
parent 8bb847bc9e
commit 9b82e87ca7

View File

@@ -86,8 +86,8 @@ public class MetadataConverter extends AbstractConverter {
packDesc = LegacyComponentSerializer.legacySection().serialize(description); packDesc = LegacyComponentSerializer.legacySection().serialize(description);
} catch (JsonSyntaxException ignored) { } } catch (JsonSyntaxException ignored) { }
if (packFormat != 4 && packFormat != 5 && packFormat != 6) { if (packFormat != 4 && packFormat != 5 && packFormat != 6 && packFormat != 7) {
throw new AssertionError("Only supports pack_format 4 (v1.13 or v1.14) or 5 (v1.15 or v1.16) or 6 (v1.16.2 - v1.16.x)!"); throw new AssertionError("Only supports pack_format 4 (v1.13 or v1.14) or 5 (v1.15 or v1.16) or 6 (v1.16.2 - v1.16.x) or 7 (v1.17 - v1.17.x)!");
} }
ResourcePackManifest.Header header = new ResourcePackManifest.Header(); ResourcePackManifest.Header header = new ResourcePackManifest.Header();