From e96fffc639b740c737a0fd48982e68c62e3aa0ab Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 29 Mar 2021 02:36:28 +0200 Subject: [PATCH] Empty craft grid on trash all --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) 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)