mirror of https://github.com/FabricMC/yarn.git
Cleanup
This commit is contained in:
parent
e40573e356
commit
e53e99dcfa
|
@ -31,12 +31,11 @@ public abstract class FormatMappingsTask extends FilamentTask {
|
||||||
void run() throws IOException {
|
void run() throws IOException {
|
||||||
Path path = getInput().get().getAsFile().toPath();
|
Path path = getInput().get().getAsFile().toPath();
|
||||||
|
|
||||||
try (MappingWriter writer = MappingWriter.create(path, MappingFormat.ENIGMA_DIR)) {
|
MappingWriter writer = MappingWriter.create(path, MappingFormat.ENIGMA_DIR);
|
||||||
Objects.requireNonNull(writer, "writer");
|
Objects.requireNonNull(writer, "writer");
|
||||||
|
|
||||||
MemoryMappingTree tree = new MemoryMappingTree();
|
MemoryMappingTree tree = new MemoryMappingTree();
|
||||||
MappingReader.read(path, MappingFormat.ENIGMA_DIR, tree);
|
MappingReader.read(path, MappingFormat.ENIGMA_DIR, tree);
|
||||||
tree.accept(writer, VisitOrder.createByName());
|
tree.accept(writer, VisitOrder.createByName());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue