Fix dependents not being loaded into mod sorter
This commit is contained in:
parent
c01b336095
commit
0b2a98f956
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ public class ModSorter
|
|||
final MutableGraph<ModFileInfo> graph = GraphBuilder.directed().build();
|
||||
AtomicInteger counter = new AtomicInteger();
|
||||
Map<IModFileInfo, Integer> infos = modFiles.stream().map(ModFile::getModFileInfo).collect(Collectors.toMap(Function.identity(), (e) -> counter.incrementAndGet()));
|
||||
infos.keySet().forEach(i -> graph.addNode((ModFileInfo) i));
|
||||
modFiles.stream().map(ModFile::getModInfos).flatMap(Collection::stream).
|
||||
map(IModInfo::getDependencies).flatMap(Collection::stream).
|
||||
forEach(dep -> addDependency(graph, dep));
|
||||
|
|
Loading…
Reference in a new issue