From 85103b8189317eeb4f61dcdb16fea9c86317039e Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 15 Dec 2025 22:33:12 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 212ff0a..4a5019d 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -398,7 +398,7 @@ local function handle_research_queue(entity, combinator) if game.forces.player.technologies[tech_name] and game.forces.player.technologies[tech_name].enabled and game.forces.player.technologies[tech_name].research_unit_count_formula then for i=1, 7 do - if signal.count % (2 ^ (8 + i)) == 1 then + if math.floor(signal.count / (2 ^ (7 + i))) % 2 == 1 then storage.phi_cl.combinator.research_queue_set[i] = tech_name end end