1
0
Fork 0
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:
Novatux 2014-01-11 17:23:28 +01:00
parent 3bbd280336
commit e21b29f422
3 changed files with 16 additions and 7 deletions

View file

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