This commit is contained in:
2026-05-09 21:53:47 +09:00
parent c30320e25f
commit ff799196ed
+16 -2
View File
@@ -38,7 +38,22 @@ function main.gui_create(player)
end
function main.gui_update(player, entity)
if entity.valid and entity.type and entity.type == 'constant-combinator' and entity.name == 'super-combinator' then
if not entity.valid then
return
end
if not entity.type then
return
end
if entity.type ~= 'constant-combinator' then
return
end
if entity.name ~= 'super-combinator' then
return
end
local circuit_oc = player.opened.get_or_create_control_behavior()
if circuit_oc and circuit_oc.sections_count and circuit_oc.sections_count == 0 then
@@ -62,7 +77,6 @@ function main.gui_update(player, entity)
end
end
end
end
function main.handle_research_queue(entity, combinator)
local combinator_slot = combinator.get_slot(1)