mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-26 19:00:39 +01: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
|
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user