summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-07-25 14:35:59 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-07-25 15:39:39 +0300
commit983e45ae928fe295fcdd30b33544fda156df240a (patch)
tree6ef05d76529ae9ecd4ace289618424f10aeeacb2 /doc/lua_api.txt
parent0a18dda158e8f256de121ed2cf7a7a161a083b1c (diff)
downloadminetest-983e45ae928fe295fcdd30b33544fda156df240a.tar.gz
minetest-983e45ae928fe295fcdd30b33544fda156df240a.tar.bz2
minetest-983e45ae928fe295fcdd30b33544fda156df240a.zip
Improve inventory callbacks a bit
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt8
1 files changed, 4 insertions, 4 deletions
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
}