mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
.
This commit is contained in:
@@ -309,6 +309,15 @@ Event.add(defines.events.on_research_finished, function(event)
|
||||
end
|
||||
end)
|
||||
|
||||
Event.add(defines.events.on_research_started, function(event)
|
||||
local r = event.research
|
||||
local res_name = config.limit_res[r.name]
|
||||
|
||||
if res_name and r.level > res_name then
|
||||
table.remove(r.force.research_queue)
|
||||
end
|
||||
end)
|
||||
|
||||
Event.on_nth_tick(60, function()
|
||||
local current_time = research_time_format(game.tick)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user