forked from mtcontrib/signs_lib
Fix unplaceable signs on blocks w/ on_rightclick when sneaking
This commit is contained in:
parent
7657d0d1f2
commit
523978edcf
4
init.lua
4
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)
|
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)
|
return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack, pointed_thing)
|
||||||
else
|
else
|
||||||
local above = pointed_thing.above
|
local above = pointed_thing.above
|
||||||
|
Loading…
Reference in New Issue
Block a user