Skip to content
Browse files
Allow placing auto-rotating nodes on other nodes in on_rightclick (#9859
  • Loading branch information
yamanq committed May 13, 2020
1 parent 4e997e9 commit 6c607e20828f97f950038dfb86891a74afb6f755
Showing 1 changed file with 2 additions and 1 deletion.
@@ -290,7 +290,8 @@ if INIT == "game" then
local undef = core.registered_nodes[]
if undef and undef.on_rightclick then
local sneaking = placer and placer:get_player_control().sneak
if undef and undef.on_rightclick and not sneaking then
return undef.on_rightclick(pointed_thing.under, unode, placer,
itemstack, pointed_thing)

0 comments on commit 6c607e2

Please sign in to comment.