aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
Diffstat (limited to 'builtin')
-rw-r--r--builtin/item.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/item.lua b/builtin/item.lua
index a28798d4d..acbdaa533 100644
--- a/builtin/item.lua
+++ b/builtin/item.lua
@@ -237,8 +237,7 @@ function minetest.item_place(itemstack, placer, pointed_thing)
local n = minetest.env:get_node(pointed_thing.under)
local nn = n.name
if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].on_rightclick then
- minetest.registered_nodes[nn].on_rightclick(pointed_thing.under, n, placer)
- return
+ return minetest.registered_nodes[nn].on_rightclick(pointed_thing.under, n, placer, itemstack)
end
end