mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Allow disabling player online autosaves (#971)
This commit is contained in:
1 parent
03f2616f30
commit
0be4fd77e5
3 files changed
+11
-1
No files matched your search
@@ -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": {
|
||||
|
||||
Reference in new issue
Block a user