Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
Fix unplaceable signs on blocks w/ on_rightclick when sneaking
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementW committed Mar 5, 2017
1 parent a54cc44 commit d5b0d32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mods/signs_lib/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,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)
else
local above = pointed_thing.above
Expand Down

1 comment on commit d5b0d32

@aerozoic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.