From 84a7f71439211f7711476b871941a31e9d51ca5a Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 20 Oct 2025 18:06:48 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index e0afc15..deb622a 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -325,7 +325,7 @@ script.on_nth_tick(1800, function(_) storage.phi_cl.combinator.combinator_list = {} storage.phi_cl.combinator.research_queue = {} storage.phi_cl.combinator.research_queue_set = {} - storage.phi_cl.combinator.research_set_combinator_count = 0 + storage.phi_cl.combinator.research_set_combinator = false local n = 1 for _, r in pairs(game.forces['player'].research_queue) do @@ -379,13 +379,13 @@ local function handle_research_queue(entity, combinator) if combinator_slot_value == 2 or combinator_slot_value == 3 then -- research_queue_write - storage.phi_cl.combinator.research_set_combinator_count = storage.phi_cl.combinator.research_set_combinator_count + 1 - - if storage.phi_cl.combinator.research_set_combinator_count > 1 then + if storage.phi_cl.combinator.research_set_combinator then combinator.set_slot(1, {value = {type = 'virtual', name = 'signal-SA', quality = 'normal'}, min = ((combinator_slot_value == 3) and 1) or 0}) return end + storage.phi_cl.combinator.research_set_combinator = true + local ls = entity.get_signals(defines.wire_connector_id.circuit_red, defines.wire_connector_id.circuit_green) if (not ls) or #ls == 0 then @@ -415,6 +415,7 @@ local function handle_research_queue(entity, combinator) if empty_gap then det = false end + else empty_gap = true end