From b4b24687a3181d40a0a881fa8cf1821903cd677e Mon Sep 17 00:00:00 2001
From: Auke Kok <sofar@foo-projects.org>
Date: Sun, 29 May 2016 16:46:34 -0700
Subject: [PATCH] cherry-pick from github.com/minetest/minetest_game> Doors:
 Pass pointed_thing to on_rightclick() callback

---
 mods/doors/init.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mods/doors/init.lua b/mods/doors/init.lua
index 302eb08f..b1bf123c 100644
--- a/mods/doors/init.lua
+++ b/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
-- 
GitLab