diff --git a/.gitignore b/.gitignore index 6aeefb22e..4aaeac45e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ run/ autotest/ dist/ +volderyarn/ # Gradle build/ diff --git a/buildSrc/src/main/java/baritone/gradle/fabric/CreateVolderYarn.java b/buildSrc/src/main/java/baritone/gradle/fabric/CreateVolderYarn.java index 2135c9f17..4e6ae09b6 100644 --- a/buildSrc/src/main/java/baritone/gradle/fabric/CreateVolderYarn.java +++ b/buildSrc/src/main/java/baritone/gradle/fabric/CreateVolderYarn.java @@ -53,7 +53,13 @@ public class CreateVolderYarn { for (ClassData clazz : mappings.values()) { builder.append("\n").append(clazz.getIntToMCP()); } - try (ZipOutputStream output = new ZipOutputStream(new FileOutputStream(new File(VOLDER_YARN_PATH)))) { + + File outputFile = new File(VOLDER_YARN_PATH); + if (!outputFile.getParentFile().exists()) { + if (!outputFile.getParentFile().mkdir()) throw new FileNotFoundException("Failed to create folder for volderyarn!"); + } + + try (ZipOutputStream output = new ZipOutputStream(new FileOutputStream(outputFile))) { output.putNextEntry(new ZipEntry("mappings/mappings.tiny")); byte[] outData = builder.toString().getBytes(StandardCharsets.UTF_8); output.write(outData, 0, outData.length); @@ -140,8 +146,6 @@ public class CreateVolderYarn { builder.append(new String(buff, 0, read)); } fileContents.put(entry.getName(), builder.toString()); - } else { - System.out.println("DEBUG: " + entry.getName()); } } return fileContents; diff --git a/volderyarn/volderyarn.jar b/volderyarn/volderyarn.jar deleted file mode 100644 index 5ce4e259e..000000000 Binary files a/volderyarn/volderyarn.jar and /dev/null differ