diff --git a/doors_and_gates.lua b/doors_and_gates.lua index 51dc7a07..cdd916be 100644 --- a/doors_and_gates.lua +++ b/doors_and_gates.lua @@ -294,7 +294,7 @@ function homedecor_place_door(itemstack, placer, pointed_thing, name, side) end end else - minetest.registered_nodes[pname].on_rightclick(pointed_thing.under, pnode, placer) + minetest.registered_nodes[pname].on_rightclick(pointed_thing.under, pnode, placer, itemstack) end end diff --git a/lighting.lua b/lighting.lua index c9559a6b..cb833476 100644 --- a/lighting.lua +++ b/lighting.lua @@ -43,7 +43,7 @@ function homedecor_rotate_and_place(itemstack, placer, pointed_thing) return itemstack end else - minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer) + minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) end end