Fix achievements not being disabled

This commit is contained in:
Cooldude2606 committed 2026-01-14 21:24:03 +00:00
1 parent 3a823bee01
commit 438ccbdc7f
2 files changed
+37 -13

No files matched your search

+7 -2
View File
@@ -962,10 +962,15 @@ end`.replace(/\r?\n/g, " ");
this._loadedSave = saveName;
await this.server.start(saveName);
if (this.config.get("factorio.enable_save_patching") && this.config.get("factorio.enable_script_commands")) {
if (this.config.get("factorio.enable_script_commands")) {
await this.server.disableAchievements();
await this.updateInstanceData();
}
if (this.config.get("factorio.enable_save_patching")) {
this._watchPlayerPromote();
if (this.config.get("factorio.enable_script_commands")) {
await this.updateInstanceData();
}
} else {
this._watchServerLogActions();
}