From adc16fdd3dad1827e9df769561ce8c3b8023d70a Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Thu, 11 Aug 2022 09:11:34 -0700 Subject: [PATCH] Factorio: Don't send researches completed by editor extensions testing forces. (#894) --- worlds/factorio/data/mod_template/control.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/worlds/factorio/data/mod_template/control.lua b/worlds/factorio/data/mod_template/control.lua index e7774fef..63473808 100644 --- a/worlds/factorio/data/mod_template/control.lua +++ b/worlds/factorio/data/mod_template/control.lua @@ -286,6 +286,12 @@ end) -- hook into researches done script.on_event(defines.events.on_research_finished, function(event) local technology = event.research + if string.find(technology.force.name, "EE_TESTFORCE") == 1 then + --Don't acknowledge AP research as an Editor Extensions test force + --Also no need for free samples in the Editor extensions testing surfaces, as these testing surfaces + --are worked on exclusively in editor mode. + return + end if technology.researched and string.find(technology.name, "ap%-") == 1 then -- check if it came from the server anyway, then we don't need to double send. dumpInfo(technology.force) --is sendable