Merge pull request #817 from Cooldude2606/fix/disable-achivement

Fix achievements not being disabled when save patching disabled
This commit is contained in:
Daniel authored and GitHub committed 2026-01-25 20:08:05 +01:00
commit 3232da71e2
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();
}