Factorio: Don't trigger bridge file on receiving a technology from server

This commit is contained in:
Fabian Dill 2021-05-29 20:02:36 +02:00
parent 6e916ebd45
commit 1d84346705
1 changed files with 3 additions and 1 deletions

View File

@ -142,7 +142,9 @@ end)
-- hook into researches done
script.on_event(defines.events.on_research_finished, function(event)
local technology = event.research
dumpInfo(technology.force)
if technology.researched and string.find(technology.name, "ap%-") == 1 then
dumpInfo(technology.force) --is sendable
end
if FREE_SAMPLES == 0 then
return -- Nothing else to do
end