From 48ab62db88ea4f79a0e13819e3981fdd37c89a1a Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 3 Jan 2017 16:54:01 +0000 Subject: [PATCH] Make doors place when shift is held instead of calling on_rightclick Fixes #1364 --- mods/doors/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/doors/init.lua b/mods/doors/init.lua index c5d4a140..ae257fb6 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -265,7 +265,8 @@ function doors.register(name, def) local node = minetest.get_node(pointed_thing.under) local pdef = minetest.registered_nodes[node.name] - if pdef and pdef.on_rightclick then + if pdef and pdef.on_rightclick and + not placer:get_player_control().sneak then return pdef.on_rightclick(pointed_thing.under, node, placer, itemstack, pointed_thing) end