Skip to content

Commit

Permalink
Allow placing auto-rotating nodes on other nodes in on_rightclick (#9859
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yamanq committed May 13, 2020
1 parent 4e997e9 commit 6c607e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin/common/misc_helpers.lua
Expand Up @@ -290,7 +290,8 @@ if INIT == "game" then
return
end
local undef = core.registered_nodes[unode.name]
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)
end
Expand Down

0 comments on commit 6c607e2

Please sign in to comment.