[1.0.0] inv.find_empty_stack('steel-chest')

This subforum contains all the issues which we already resolved.
Post Reply
Nexela
Smart Inserter
Smart Inserter
Posts: 1822
Joined: Wed May 25, 2016 11:09 am
Contact:

[1.0.0] inv.find_empty_stack('steel-chest')

Post by Nexela »

find_empty_stack(item) → LuaItemStack
Finds the first empty stack. Filtered slots are excluded unless a filter item is given.

The optional filter name on find_empty_stack only returns empty filtered stacks

Code: Select all

/c game.print(type(game.player.get_main_inventory().find_empty_stack('steel-chest'))) -- nil if there is not an empty steel-chest filter

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 1561
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.0.0] inv.find_empty_stack('steel-chest')

Post by boskid »

Thanks for the report. Issue is now fixed for the future release.

Post Reply

Return to “Resolved Problems and Bugs”