From 781e40428fad4ed564e2664327ebdf11546a5b3c Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Tue, 7 Jul 2020 14:24:47 +0200 Subject: [PATCH] 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. --- test/mock.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/mock.js b/test/mock.js index c919d57c..bc77c051 100644 --- a/test/mock.js +++ b/test/mock.js @@ -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"); }, };