mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-24 21:35:21 +02:00
Fix to on_rightclick not able to change wielded_item
This commit is contained in:
committed by
Ilya Zhuravlev
parent
8e69b9cb26
commit
b1019a88ba
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user