mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 07:04:53 +09:00
Fix disabled mods still being loaded
The format of mod-list.json written on syncMods would incorrectly write a base mod without an enableds key which is required, causing Factorio to ignore the file entirerly. Furthermore the enabled status was not written causing all mods to be loaded even if they were disabled in the mod pack.
This commit is contained in:
1 parent
fda2d7f574
commit
bfe523ac45
1 file changed
+1
-1
@@ -649,7 +649,7 @@ rcon.print(game.table_to_json(players))`.replace(/\r?\n/g, " ");
|
||||
|
||||
// Write mod-list.json
|
||||
await fs.outputFile(this.path("mods", "mod-list.json"), JSON.stringify({
|
||||
mods: [{ name: "base" }, ...this.activeModPack.mods.values()].map(m => ({ name: m.name, enabled: true })),
|
||||
mods: [...this.activeModPack.mods.values()],
|
||||
}, null, 2));
|
||||
|
||||
// Write mod-settings.dat
|
||||
|
||||
Reference in new issue
Block a user