Skip to content
Permalink
Browse files

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 29, 2016
1 parent 541b2d7 commit ba33639887eeadd8f4e5fc95d327b188b8564962
Showing with 1 addition and 1 deletion.
  1. +1 −1 mods/doors/init.lua
@@ -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

0 comments on commit ba33639

Please sign in to comment.
You can’t perform that action at this time.