File tree Expand file tree Collapse file tree
converter/src/main/java/org/geysermc/pack/converter Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments