mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user