Skip to content

Commit

Permalink
Fix MojangMappingsMerger having incomplete names
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Nov 2, 2023
1 parent 04074fb commit 93c88cf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public static MemoryMappingTree mergeMojangMappings(MappingContext context, Path
MemoryMappingTree incomplete = processor.getMappings(List.of(inputLayer, renamedMojangLayer));
MemoryMappingTree result = new MemoryMappingTree();
MappingVisitor visitor = new MappingSourceNsSwitch(result, MappingsNamespace.OFFICIAL.toString());
Map<String, String> toComplete = Map.of(MappingsNamespace.INTERMEDIARY.toString(), MappingsNamespace.OFFICIAL.toString());
// Run via intermediary first to drop any missing names.
visitor = new MappingSourceNsSwitch(visitor, MappingsNamespace.INTERMEDIARY.toString(), true);
Map<String, String> toComplete = Map.of(MappingsNamespace.MOJANG.toString(), MappingsNamespace.OFFICIAL.toString());
visitor = new MappingNsCompleter(visitor, toComplete);
incomplete.accept(visitor);
return result;
Expand Down

0 comments on commit 93c88cf

Please sign in to comment.