remove debug, add ignore

This commit is contained in:
wagyourtail 2021-01-19 23:11:42 -07:00
parent 82436f30e1
commit b493c2ce89
3 changed files with 8 additions and 3 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
run/
autotest/
dist/
volderyarn/
# Gradle
build/

View File

@ -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;

Binary file not shown.