[0.12.33] player.insert() ignores quickbar filter
Posted: Wed May 04, 2016 8:47 am
under certain circumstances that don't fit into the title.
Set a quickbar filter for let's say basic inserter. Run
That will put five inserters into the filtered slot if there's enough free space. Great.
Now hold those inserters in the cursor stack and run
The inserters will be placed in a different slot, the filtered slot will remain empty.
Expected outcome: the inserters go where they belong.
(Is there a better way of returning the items in the cursor stack to the inventory?)
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?)