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)