Skip to content
Permalink
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 with 2 additions and 1 deletion.
  1. +2 −1 builtin/common/misc_helpers.lua
@@ -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

0 comments on commit 6c607e2

Please sign in to comment.
You can’t perform that action at this time.