From 523978edcf2c9e1b1196d86d3f7e8c156a65904b Mon Sep 17 00:00:00 2001 From: Dorian Wouters Date: Sun, 5 Mar 2017 13:56:13 -0500 Subject: [PATCH] Fix unplaceable signs on blocks w/ on_rightclick when sneaking --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b89cff7..536066f 100644 --- a/init.lua +++ b/init.lua @@ -571,7 +571,9 @@ function signs_lib.determine_sign_type(itemstack, placer, pointed_thing, locked) local node=minetest.get_node(pointed_thing.under) - if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then + if minetest.registered_nodes[node.name] and + minetest.registered_nodes[node.name].on_rightclick and + not placer:get_player_control().sneak then return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack, pointed_thing) else local above = pointed_thing.above