cherry-pick from github.com/minetest/minetest_game> Doors: Pass pointed_thing to on_rightclick() callback
This commit is contained in:
parent
37d3fe0cb1
commit
b4b24687a3
@ -254,7 +254,7 @@ function doors.register(name, def)
|
||||
local pdef = minetest.registered_nodes[node.name]
|
||||
if pdef and pdef.on_rightclick then
|
||||
return pdef.on_rightclick(pointed_thing.under,
|
||||
node, placer, itemstack)
|
||||
node, placer, itemstack, pointed_thing)
|
||||
end
|
||||
|
||||
if pdef and pdef.buildable_to then
|
||||
|
Loading…
x
Reference in New Issue
Block a user