diff options
author | SmallJoker <mk939@ymail.com> | 2017-08-10 09:41:56 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-08-13 21:37:30 +0100 |
commit | 4381fe0a0a0921e6ba79c072045be2dc04be646a (patch) | |
tree | 9c88996d20c6da156f87c3f193a8c358597ec5e6 /doc | |
parent | fa7fe405095cbcdcdca3cf953a036bfd85d5b21d (diff) | |
download | minetest-4381fe0a0a0921e6ba79c072045be2dc04be646a.tar.gz minetest-4381fe0a0a0921e6ba79c072045be2dc04be646a.tar.bz2 minetest-4381fe0a0a0921e6ba79c072045be2dc04be646a.zip |
Trigger on_rightclick regardless on the formspec meta field
Document behaviour for older clients.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b9dc1b47f..b5ab30d58 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4317,9 +4317,11 @@ Definition tables ^ By default: Calls minetest.register_on_punchnode callbacks ]] on_rightclick = func(pos, node, clicker, itemstack, pointed_thing), --[[ ^ default: nil - ^ if defined, itemstack will hold clicker's wielded item + ^ itemstack will hold clicker's wielded item ^ Shall return the leftover itemstack - ^ Note: pointed_thing can be nil, if a mod calls this function ]] + ^ 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 ]] on_dig = func(pos, node, digger), --[[ ^ default: minetest.node_dig |