From fa3baa0ed0ed9a4cf2f409bd7b723dddf72ae427 Mon Sep 17 00:00:00 2001 From: x2605 <69812394+x2605@users.noreply.github.com> Date: Mon, 25 Apr 2022 19:59:53 +0900 Subject: [PATCH] Fix KIX tech finished do nothing until KI gui used I tried finishing KIX tech. Which did nothing so I seek code and made refresh after research finished. --- control.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/control.lua b/control.lua index 4b242f8..b107274 100644 --- a/control.lua +++ b/control.lua @@ -176,6 +176,17 @@ script.on_event({ end ) +script.on_event({ + defines.events.on_research_finished + }, + function(e) + if e.research and (e.research.name == "fu_ki_plus_1_tech" or e.research.name == "fu_ki_plus_2_tech") then + if not global.ki then global.ki = {} end + global.ki.dirty = true + end + end +) + --=================================================================================================================== --config change