mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Deepcopy pointed_thing for after_place_node, give it to on_rightclick too.
This commit is contained in:
parent
3bbd280336
commit
e21b29f422
3 changed files with 16 additions and 7 deletions
|
@ -278,7 +278,7 @@ if minetest then
|
|||
local undef = minetest.registered_nodes[unode.name]
|
||||
if undef and undef.on_rightclick then
|
||||
undef.on_rightclick(pointed_thing.under, node, placer,
|
||||
itemstack)
|
||||
itemstack, pointed_thing)
|
||||
return
|
||||
end
|
||||
local pitch = placer:get_look_pitch()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue