From be35700b43f2a24888ce7f722456f899246eb7bd Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Sat, 18 Oct 2025 03:40:44 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index c412e0e..bd71e3b 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -499,14 +499,13 @@ script.on_nth_tick(10, function(_) local combinator = entity.get_or_create_control_behavior() if combinator and combinator.sections_count then - if combinator.sections_count > 0 then - handle_research_queue(combinator.sections[1]) - handle_valve_value(entity, combinator.sections[1]) - handle_spoil_value(entity, combinator.sections[1]) - - else + if combinator.sections_count == 0 then combinator.add_section() end + + handle_research_queue(combinator.sections[1]) + handle_valve_value(entity, combinator.sections[1]) + handle_spoil_value(entity, combinator.sections[1]) end end end