aboutsummaryrefslogtreecommitdiff
path: root/builtin/item.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/item.lua')
-rw-r--r--builtin/item.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/item.lua b/builtin/item.lua
index 8e2f75a1a..51a17106a 100644
--- a/builtin/item.lua
+++ b/builtin/item.lua
@@ -244,7 +244,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
- return minetest.registered_nodes[nn].on_rightclick(pointed_thing.under, n, placer, itemstack)
+ return minetest.registered_nodes[nn].on_rightclick(pointed_thing.under, n, placer, itemstack) or itemstack
end
end