From ba33639887eeadd8f4e5fc95d327b188b8564962 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] Doors: Pass pointed_thing to on_rightclick() callback

This is an omission technicality. The callee should be able
to trust this isn't `nil`
---
 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