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
|
end
|
||||||
|
|
||||||
function main.gui_update(player, entity)
|
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()
|
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
|
if circuit_oc and circuit_oc.sections_count and circuit_oc.sections_count == 0 then
|
||||||
@@ -61,7 +76,6 @@ function main.gui_update(player, entity)
|
|||||||
dropdown.selected_index = ((val < 0 or val > 3) and 1) or (val + 1)
|
dropdown.selected_index = ((val < 0 or val > 3) and 1) or (val + 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function main.handle_research_queue(entity, combinator)
|
function main.handle_research_queue(entity, combinator)
|
||||||
|
|||||||
Reference in New Issue
Block a user