mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 02:55:22 +09:00
.
This commit is contained in:
@@ -499,14 +499,13 @@ script.on_nth_tick(10, function(_)
|
|||||||
local combinator = entity.get_or_create_control_behavior()
|
local combinator = entity.get_or_create_control_behavior()
|
||||||
|
|
||||||
if combinator and combinator.sections_count then
|
if combinator and combinator.sections_count then
|
||||||
if combinator.sections_count > 0 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
|
|
||||||
combinator.add_section()
|
combinator.add_section()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
handle_research_queue(combinator.sections[1])
|
||||||
|
handle_valve_value(entity, combinator.sections[1])
|
||||||
|
handle_spoil_value(entity, combinator.sections[1])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user