mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Fix "soft" dependencies so they can exist properly
This commit is contained in:
1 parent
e78688acdc
commit
0ec65b4b3a
1 file changed
+6
-2
@@ -73,7 +73,9 @@ public class ModSorter
|
||||
else
|
||||
{
|
||||
modGraph.addEdge(before, mod);
|
||||
modGraph.addEdge(nameLookup.get(dep), mod);
|
||||
if (nameLookup.containsKey(dep)) {
|
||||
modGraph.addEdge(nameLookup.get(dep), mod);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +93,9 @@ public class ModSorter
|
||||
else
|
||||
{
|
||||
modGraph.addEdge(mod, after);
|
||||
modGraph.addEdge(mod, nameLookup.get(dep));
|
||||
if (nameLookup.containsKey(dep)) {
|
||||
modGraph.addEdge(mod, nameLookup.get(dep));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user