aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Ouellette <oue.paul18@gmail.com>2018-12-10 13:18:03 -0500
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-12-10 19:18:03 +0100
commitafaf7b901bfcceed1ca72c991ba2149137e989d3 (patch)
tree01b87c5390acd33ed44f4cee01682928d9503818 /doc
parentf7cccd4df3163464a4fc3bcca4636c93126bbe7f (diff)
downloadminetest-afaf7b901bfcceed1ca72c991ba2149137e989d3.tar.gz
minetest-afaf7b901bfcceed1ca72c991ba2149137e989d3.tar.bz2
minetest-afaf7b901bfcceed1ca72c991ba2149137e989d3.zip
Fix wrong parameter order for inventory callbacks (#7952)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 523bf8eb1..adde1112f 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3685,7 +3685,7 @@ Call these functions only at load time!
* `minetest.register_craft_predict(func(itemstack, player, old_craft_grid, craft_inv))`
* The same as before, except that it is called before the player crafts, to
make craft prediction, and it should not change anything.
-* `minetest.register_allow_player_inventory_action(func(player, inventory, action, inventory_info))`
+* `minetest.register_allow_player_inventory_action(func(player, action, inventory, inventory_info))`
* Determinates how much of a stack may be taken, put or moved to a
player inventory.
* `player` (type `ObjectRef`) is the player who modified the inventory
@@ -3697,7 +3697,7 @@ Call these functions only at load time!
* `take`: Same as `put`
* Return a numeric value to limit the amount of items to be taken, put or
moved. A value of `-1` for `take` will make the source stack infinite.
-* `minetest.register_on_player_inventory_action(func(player, inventory, action, inventory_info))`
+* `minetest.register_on_player_inventory_action(func(player, action, inventory, inventory_info))`
* Called after a take, put or move event from/to/in a player inventory
* Function arguments: see `minetest.register_allow_player_inventory_action`
* Does not accept or handle any return value.