Skip to content

Commit

Permalink
Sort mappings by name when exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Oct 9, 2023
1 parent 1c8219d commit 99f0376
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import net.fabricmc.mappingio.format.MappingFormat;
import net.fabricmc.mappingio.tree.MappingTreeView;
import net.fabricmc.mappingio.tree.MemoryMappingTree;
import net.fabricmc.mappingio.tree.VisitOrder;
import net.fabricmc.mappingio.tree.VisitableMappingTree;

import jadx.api.ICodeInfo;
Expand Down Expand Up @@ -255,7 +256,7 @@ public void exportMappings(Path path, JadxCodeData codeData, MappingFormat mappi
}
}
// Write file
mappingTree.accept(MappingWriter.create(path, mappingFormat));
mappingTree.accept(MappingWriter.create(path, mappingFormat), VisitOrder.createByName());
mappingTree.visitEnd();
} catch (IOException e) {
LOG.error("Failed to save deobfuscation map file '{}'", path.toAbsolutePath(), e);
Expand Down

0 comments on commit 99f0376

Please sign in to comment.