Merge pull request #20 from x2605/KIX-event

Fix KIX tech finished do nothing until KI gui used
This commit is contained in:
PreLeyZero 2022-04-26 20:06:09 +02:00 committed by GitHub
commit aafb29b703
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,6 +176,17 @@ script.on_event({
end 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 --config change