Page 1 of 1

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

Posted: Sun Aug 23, 2020 4:28 am
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

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

Posted: Sun Aug 23, 2020 7:38 am
by boskid
Thanks for the report. Issue is now fixed for the future release.