Modern Lua Plugins: ide-helper improvements. LG-1978, LG-1980

This commit is contained in:
alek13
2025-09-30 04:38:37 +03:00
parent 58455319a3
commit 4e3d2b7b74
3 changed files with 17 additions and 7 deletions

View File

@@ -574,8 +574,8 @@ local NodeDefinition = {
--- Note: pointed_thing can be nil, if a mod calls this function.
--- This function does not get triggered by clients <=0.4.16 if the
--- "formspec" node metadata field is set.
--- @type fun(pos:Position, node:NodeTable, clicker:Player|ObjectRef|nil, itemstack:ItemStack, pointed_thing:pointed_thing|nil)?
on_rightclick = nil,
--- @type (fun(pos:Position, node:NodeTable, clicker:Player|ObjectRef, itemstack:ItemStack, pointed_thing:pointed_thing|nil):ItemStack|nil)?
on_rightclick = core.node_punch,
--- default: minetest.node_dig
--- By default checks privileges, wears out item (if tool) and removes node.