mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 02:55:22 +09:00
.
This commit is contained in:
@@ -408,24 +408,6 @@ local function handle_research_queue(entity, combinator)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local empty = true
|
|
||||||
local empty_gap = false
|
|
||||||
local det = true
|
|
||||||
|
|
||||||
for i=1, 7 do
|
|
||||||
if storage.phi_cl.combinator.research_queue_set[i] then
|
|
||||||
empty = false
|
|
||||||
|
|
||||||
if empty_gap then
|
|
||||||
det = false
|
|
||||||
end
|
|
||||||
|
|
||||||
else
|
|
||||||
empty_gap = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if det and (not empty) then
|
|
||||||
local tech_queue = {}
|
local tech_queue = {}
|
||||||
|
|
||||||
for i=1,7 do
|
for i=1,7 do
|
||||||
@@ -440,7 +422,6 @@ local function handle_research_queue(entity, combinator)
|
|||||||
|
|
||||||
storage.phi_cl.combinator.last_writer = nil
|
storage.phi_cl.combinator.last_writer = nil
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
script.on_nth_tick(10, function(_)
|
script.on_nth_tick(10, function(_)
|
||||||
|
|||||||
Reference in New Issue
Block a user