1
0
镜像自地址 https://github.com/luanti-org/luanti.git 已同步 2025-11-06 02:05:30 +01:00

Allow placing auto-rotating nodes on other nodes in on_rightclick (#9859)

这个提交包含在:
Yaman Qalieh
2020-05-13 07:57:05 -04:00
提交者 GitHub
父节点 4e997e9d04
当前提交 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