Add enable_save_patching to mock instance config

Handle the factorio.enable_save_patching config option in the mock
instance as these are queried by instances after 9458155.
This commit is contained in:
Hornwitser committed 2020-07-07 14:24:47 +02:00
1 parent 999386c088
commit 781e40428f
1 file changed
+1
+1
View File
@@ -68,6 +68,7 @@ class MockInstance extends link.Link {
this.config = {
get: (name) => {
if (name === "instance.id") { return 7357; }
if (name === "factorio.enable_save_patching") { return true; }
throw Error("Not implemented");
},
};