mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Allow placing auto-rotating nodes on other nodes in on_rightclick (#9859)
This commit is contained in:
parent
4e997e9d04
commit
6c607e2082
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user