Merge pull request #20 from x2605/KIX-event
Fix KIX tech finished do nothing until KI gui used
This commit is contained in:
commit
aafb29b703
1 changed files with 11 additions and 0 deletions
11
control.lua
11
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue