Skip to content


Browse files Browse the repository at this point in the history
Doors: Pass pointed_thing to on_rightclick() callback
This is an omission technicality. The callee should be able
to trust this isn't `nil`
  • Loading branch information
sofar authored and paramat committed May 30, 2016
1 parent 541b2d7 commit ba33639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/doors/init.lua
Expand Up @@ -254,7 +254,7 @@ function doors.register(name, def)
local pdef = minetest.registered_nodes[]
if pdef and pdef.on_rightclick then
return pdef.on_rightclick(pointed_thing.under,
node, placer, itemstack)
node, placer, itemstack, pointed_thing)

if pdef and pdef.buildable_to then
Expand Down

0 comments on commit ba33639

Please sign in to comment.