Allow disabling player online autosaves (#971)

This commit is contained in:
Floze authored and GitHub committed 2026-08-14 10:24:15 +01:00
1 parent 03f2616f30
commit 0be4fd77e5
3 files changed
+11 -1

No files matched your search

+9
View File
@@ -227,6 +227,15 @@ describe("lib/config/definitions/validators", function() {
/Value cannot be less than the number of autosave slots/
);
});
it("should allow disabling player online autosaves", function() {
const config = new InstanceConfig("controller", {
"factorio.settings": {
autosave_slots: 5,
},
});
assert.doesNotThrow(() => config.set("factorio.player_online_autosave_slots", 0));
});
it("should allow when autosave_slots is not a number", function() {
const config = new InstanceConfig("controller", {
"factorio.settings": {