diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-05 14:19:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-05 14:19:52 -0500 |
commit | 2c369370541829f7d867b190973f7d937338d74c (patch) | |
tree | de9e6142225321f106dc78b160b7bc8df7bfd668 | |
parent | 7657d0d1f219cf2c1b0f5dbaec4f735158cbac30 (diff) | |
parent | 523978edcf2c9e1b1196d86d3f7e8c156a65904b (diff) |
Merge pull request #11 from MinetestForFun/master
Fix unplaceable signs on blocks w/ on_rightclick when sneaking
-rw-r--r-- | init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |