Skip to content

Commit b9da2f5

Browse files
committed
Undo "Temporarily remove the pack.mcmeta check"
1 parent 05c7283 commit b9da2f5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

converter/src/main/java/org/geysermc/pack/converter/PackConverter.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,10 @@ public PackConverter convert() throws IOException {
297297
VanillaPackProvider.create(vanillaPackPath, this.logListener);
298298

299299
ZipUtils.openFileSystem(this.input, this.compressed, input -> {
300-
// TODO: Add this back as an optional thing in API once it's been sorted out
301-
// if (!Files.exists(input.resolve("pack.mcmeta"))) {
302-
// logListener.error("Invalid Java Edition resource pack. No pack.mcmeta found.");
303-
// return;
304-
// }
300+
if (!Files.exists(input.resolve("pack.mcmeta"))) {
301+
logListener.error("Invalid Java Edition resource pack. No pack.mcmeta found.");
302+
return;
303+
}
305304

306305
this.tmpDir = this.output.toAbsolutePath().getParent().resolve(this.output.getFileName() + "_mcpack/");
307306

0 commit comments

Comments
 (0)