mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Allow placing auto-rotating nodes on other nodes in on_rightclick (#9859)
This commit is contained in:
@@ -290,7 +290,8 @@ if INIT == "game" then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local undef = core.registered_nodes[unode.name]
|
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,
|
return undef.on_rightclick(pointed_thing.under, unode, placer,
|
||||||
itemstack, pointed_thing)
|
itemstack, pointed_thing)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user