fix missing argument when calling on_rightclick
This commit is contained in:
parent
3a3b225726
commit
db42717015
@ -33,9 +33,9 @@ function register_door(name, def)
|
|||||||
|
|
||||||
local ptu = pointed_thing.under
|
local ptu = pointed_thing.under
|
||||||
local nu = minetest.get_node(ptu)
|
local nu = minetest.get_node(ptu)
|
||||||
if minetest.registered_nodes[nu.name]
|
local ndef = minetest.registered_nodes[nu.name]
|
||||||
and minetest.registered_nodes[nu.name].on_rightclick then
|
if ndef and ndef.on_rightclick then
|
||||||
return minetest.registered_nodes[nu.name].on_rightclick(ptu, nu, placer, itemstack)
|
return ndef.on_rightclick(ptu, nu, placer, itemstack, pointed_thing)
|
||||||
end
|
end
|
||||||
|
|
||||||
local pt = pointed_thing.above
|
local pt = pointed_thing.above
|
||||||
|
Loading…
x
Reference in New Issue
Block a user