update tiny-remapper

This commit is contained in:
asie
2018-11-12 01:25:06 +01:00
parent 24b1b0669d
commit 823854f2a1
4 changed files with 4 additions and 31 deletions

View File

@@ -79,9 +79,7 @@ public class ModRemapper {
TinyRemapper remapper = remapperBuilder.build();
OutputConsumerPath outputConsumer = null;
try {
outputConsumer = new OutputConsumerPath(modJarOutputPath);
try (OutputConsumerPath outputConsumer = new OutputConsumerPath(modJarOutputPath)) {
outputConsumer.addNonClassFiles(modJarPath);
remapper.read(classpath);
remapper.read(modJarPath);
@@ -89,13 +87,6 @@ public class ModRemapper {
} catch (Exception e) {
throw new RuntimeException("Failed to remap JAR", e);
} finally {
if (outputConsumer != null) {
try {
outputConsumer.finish();
} catch (Exception e) {
e.printStackTrace();
}
}
remapper.finish();
}