mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 23:10:17 +01:00
Doors: Pass pointed_thing to on_rightclick() callback
This is an omission technicality. The callee should be able to trust this isn't `nil`
This commit is contained in:
parent
541b2d79c7
commit
ba33639887
@ -254,7 +254,7 @@ function doors.register(name, def)
|
|||||||
local pdef = minetest.registered_nodes[node.name]
|
local pdef = minetest.registered_nodes[node.name]
|
||||||
if pdef and pdef.on_rightclick then
|
if pdef and pdef.on_rightclick then
|
||||||
return pdef.on_rightclick(pointed_thing.under,
|
return pdef.on_rightclick(pointed_thing.under,
|
||||||
node, placer, itemstack)
|
node, placer, itemstack, pointed_thing)
|
||||||
end
|
end
|
||||||
|
|
||||||
if pdef and pdef.buildable_to then
|
if pdef and pdef.buildable_to then
|
||||||
|
Loading…
Reference in New Issue
Block a user