1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix to on_rightclick not able to change wielded_item

This commit is contained in:
RealBadAngel 2013-02-12 22:51:38 +01:00 committed by Ilya Zhuravlev
parent 8e69b9cb26
commit b1019a88ba
2 changed files with 4 additions and 3 deletions

View file

@ -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