Skip to content

Commit

Permalink
fix missing argument when calling on_rightclick
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Nov 16, 2021
1 parent 3a3b225 commit db42717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doors_chest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ function register_door(name, def)

local ptu = pointed_thing.under
local nu = minetest.get_node(ptu)
if minetest.registered_nodes[nu.name]
and minetest.registered_nodes[nu.name].on_rightclick then
return minetest.registered_nodes[nu.name].on_rightclick(ptu, nu, placer, itemstack)
local ndef = minetest.registered_nodes[nu.name]
if ndef and ndef.on_rightclick then
return ndef.on_rightclick(ptu, nu, placer, itemstack, pointed_thing)
end

local pt = pointed_thing.above
Expand Down

0 comments on commit db42717

Please sign in to comment.