The expansions must be loaded in correct order.... fuck
This commit is contained in:
@@ -240,7 +240,11 @@ class ModList {
|
||||
final modId = modElement.innerText.toLowerCase();
|
||||
|
||||
if (specialMods.containsKey(modId)) {
|
||||
mods[modId] = specialMods[modId]!;
|
||||
logger.info('Loading special mod: $modId');
|
||||
mods[modId] = specialMods[modId]!.copyWith();
|
||||
setEnabled(modId, true);
|
||||
logger.info('Enabled special mod: $modId');
|
||||
yield mods[modId]!;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -382,12 +386,14 @@ class ModList {
|
||||
loadOrder ??= LoadOrder();
|
||||
final logger = Logger.instance;
|
||||
logger.info('Generating load order...');
|
||||
|
||||
for (var mod in activeMods.values) {
|
||||
for (final mod in activeMods.values) {
|
||||
logger.info('Checking mod: ${mod.id}');
|
||||
if (specialMods.containsKey(mod.id)) {
|
||||
logger.info('Special mod: ${mod.id}');
|
||||
mod = specialMods[mod.id]!.copyWith();
|
||||
// Replace our fake base game mod with the chad one
|
||||
// This is a bit of a hack, but it works
|
||||
activeMods[mod.id] = specialMods[mod.id]!.copyWith();
|
||||
mods[mod.id] = specialMods[mod.id]!.copyWith();
|
||||
}
|
||||
logger.info('Mod details: ${mod.toString()}');
|
||||
for (final incomp in mod.incompatibilities) {
|
||||
|
Reference in New Issue
Block a user