Set a quickbar filter for let's say basic inserter. Run
Code: Select all
game.player.insert{name="basic-inserter", count=5}
Now hold those inserters in the cursor stack and run
Code: Select all
game.player.cursor_stack.clear()
game.player.insert{name="basic-inserter", count=5}
Expected outcome: the inserters go where they belong.
(Is there a better way of returning the items in the cursor stack to the inventory?)