From 0b2a98f9563acc01fcc97b6eeaf8312c6930939f Mon Sep 17 00:00:00 2001 From: tterrag Date: Wed, 23 Jan 2019 20:04:57 -0500 Subject: [PATCH] Fix dependents not being loaded into mod sorter --- .../java/net/minecraftforge/fml/loading/ModSorter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fmllauncher/java/net/minecraftforge/fml/loading/ModSorter.java b/src/fmllauncher/java/net/minecraftforge/fml/loading/ModSorter.java index 7647deffd..6fd7bb2e4 100644 --- a/src/fmllauncher/java/net/minecraftforge/fml/loading/ModSorter.java +++ b/src/fmllauncher/java/net/minecraftforge/fml/loading/ModSorter.java @@ -86,6 +86,7 @@ public class ModSorter final MutableGraph graph = GraphBuilder.directed().build(); AtomicInteger counter = new AtomicInteger(); Map 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));