Fix throwing error on conflicts
This commit is contained in:
@@ -190,11 +190,11 @@ class ModList {
|
||||
|
||||
// Only check each pair once
|
||||
for (final modId in activeModIds) {
|
||||
Mod mod = mods[modId]!;
|
||||
final mod = mods[modId]!;
|
||||
|
||||
for (final incompId in mod.incompatibilities) {
|
||||
// Only process if other mod is active and we haven't checked this pair yet
|
||||
if (activeMods.containsKey(incompId) && modId.compareTo(incompId) < 0) {
|
||||
if (activeMods.containsKey(incompId)) {
|
||||
conflicts.add([modId, incompId]);
|
||||
}
|
||||
}
|
||||
@@ -254,7 +254,7 @@ class ModList {
|
||||
}
|
||||
|
||||
// Visit all nodes
|
||||
for (Mod mod in mods.values) {
|
||||
for (final mod in mods.values) {
|
||||
if (!mod.visited) {
|
||||
visit(mod);
|
||||
}
|
||||
|
Reference in New Issue
Block a user