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

View File

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