forked from mtcontrib/homedecor_modpack
fix removing item with inv contents https://github.com/mt-mods/homedecor_modpack/issues/3
This commit is contained in:
parent
f6f6f3a3c3
commit
d9c42344ab
|
@ -91,6 +91,10 @@ homedecor.register("medicine_cabinet", {
|
|||
node.name = "homedecor:medicine_cabinet_open"
|
||||
minetest.swap_node(pos, node)
|
||||
end,
|
||||
can_dig = function(pos)
|
||||
local inv = minetest.get_meta(pos):get_inventory("main")
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
infotext=S("Medicine cabinet"),
|
||||
inventory = {
|
||||
size=6,
|
||||
|
@ -115,6 +119,10 @@ homedecor.register("medicine_cabinet_open", {
|
|||
node.name = "homedecor:medicine_cabinet"
|
||||
minetest.swap_node(pos, node)
|
||||
end,
|
||||
can_dig = function(pos)
|
||||
local inv = minetest.get_meta(pos):get_inventory("main")
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
})
|
||||
|
||||
-- "Sanitation" related
|
||||
|
|
Loading…
Reference in New Issue
Block a user