diff --git a/init.lua b/init.lua index 98986ce..c885123 100644 --- a/init.lua +++ b/init.lua @@ -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)