mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-15 05:34:52 +09:00
.
This commit is contained in:
1 parent
5554f7f716
commit
be35700b43
1 file changed
+5
-6
+5
-6
@@ -499,14 +499,13 @@ script.on_nth_tick(10, function(_)
|
||||
local combinator = entity.get_or_create_control_behavior()
|
||||
|
||||
if combinator and combinator.sections_count 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
|
||||
if combinator.sections_count == 0 then
|
||||
combinator.add_section()
|
||||
end
|
||||
|
||||
handle_research_queue(combinator.sections[1])
|
||||
handle_valve_value(entity, combinator.sections[1])
|
||||
handle_spoil_value(entity, combinator.sections[1])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user