forked from MineClone5/MineClone5
Update falling nodes after eating up cake
This commit is contained in:
parent
0bb0ba91d9
commit
c328a9b1bc
|
@ -73,6 +73,7 @@ local register_slice = function(level, nodebox, desc)
|
||||||
on_rightclick = function(pos, node, clicker, itemstack)
|
on_rightclick = function(pos, node, clicker, itemstack)
|
||||||
minetest.do_item_eat(2, ItemStack("mcl:cake:cake 0"), ItemStack("mcl_cake:cake_1"), clicker, {type="nothing"})
|
minetest.do_item_eat(2, ItemStack("mcl:cake:cake 0"), ItemStack("mcl_cake:cake_1"), clicker, {type="nothing"})
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
|
core.check_for_falling(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue