mirror of
https://github.com/minetest-mods/i3.git
synced 2025-06-12 14:50:34 +02:00
Empty craft grid on trash all
This commit is contained in:
parent
451dde2a73
commit
e96fffc639
5
init.lua
5
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user