This commit is contained in:
Lord89James 2013-03-01 08:33:52 -08:00
commit 4cd6744e7e
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ function doors:register_door(name, def)
if not pointed_thing.type == "node" then
return itemstack
end
local n = minetest.env:get_node(pointed_thing.under)
local nn = n.name
if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].on_rightclick then
minetest.registered_nodes[nn].on_rightclick(pointed_thing.under, n, placer)
return
end
local pt = pointed_thing.above
local pt2 = {x=pt.x, y=pt.y, z=pt.z}
pt2.y = pt2.y+1