[boskid] Splitter LuaTransportLine.output_lines
Posted: Sun Jan 30, 2022 2:09 am
I have a splitter, which contains 8 LuaTransportLines. If I select one of 4 output LuaTransportLines, I would expect that it only outputs to one line, since it is already past the splitter section.
However, this code prints 2, indicating it found two output lines. Further examination shows that it found lines with index 5 and 7.
Is this a bug?
However, this code prints 2, indicating it found two output lines. Further examination shows that it found lines with index 5 and 7.
Code: Select all
/c
splitter = game.player.surface.create_entity{name="splitter", position={0, 0.5}, force=game.player.force}
transport_line = splitter.get_transport_line(5)
game.print(#transport_line.output_lines)