From 983e45ae928fe295fcdd30b33544fda156df240a Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 25 Jul 2012 14:35:59 +0300 Subject: Improve inventory callbacks a bit --- doc/lua_api.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 5fb2c34e3..4dcb0af87 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1371,14 +1371,14 @@ Node definition (register_node) ^ Called when a player wants to put something into the inventory ^ Return value: number of items allowed to put - allow_metadata_inventory_take = func(pos, listname, index, count, player), + allow_metadata_inventory_take = func(pos, listname, index, stack, player), ^ Called when a player wants to take something out of the inventory ^ Return value: number of items allowed to take on_metadata_inventory_move = func(pos, from_list, from_index, to_list, to_index, count, player), on_metadata_inventory_put = func(pos, listname, index, stack, player), - on_metadata_inventory_take = func(pos, listname, index, count, player), + on_metadata_inventory_take = func(pos, listname, index, stack, player), ^ Called after the actual action has happened, according to what was allowed. ^ No return value } @@ -1447,13 +1447,13 @@ Detached inventory callbacks ^ Called when a player wants to put something into the inventory ^ Return value: number of items allowed to put - allow_take = func(inv, listname, index, count, player), + allow_take = func(inv, listname, index, stack, player), ^ Called when a player wants to take something out of the inventory ^ Return value: number of items allowed to take on_move = func(inv, from_list, from_index, to_list, to_index, count, player), on_put = func(inv, listname, index, stack, player), - on_take = func(inv, listname, index, count, player), + on_take = func(inv, listname, index, stack, player), ^ Called after the actual action has happened, according to what was allowed. ^ No return value } -- cgit v1.2.3