Fix throwing error on conflicts

This commit is contained in:
2025-03-16 13:18:27 +01:00
parent c32101c238
commit 76363dd523
2 changed files with 14 additions and 17 deletions

View File

@@ -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);
}