Empty craft grid on trash all

This commit is contained in:
Jean-Patrick Guerrero 2021-03-29 02:36:28 +02:00
parent 451dde2a73
commit e96fffc639
1 changed files with 5 additions and 0 deletions

View File

@ -2408,10 +2408,15 @@ i3.new_tab {
if fields.trash then
local inv = player:get_inventory()
if not inv:is_empty("main") then
inv:set_list("main", {})
end
if not inv:is_empty("craft") then
inv:set_list("craft", {})
end
elseif fields.compress then
compress_items(player)