diff options
author | ShadowNinja <shadowninja@minetest.net> | 2013-12-18 17:10:25 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-12-20 14:38:16 -0500 |
commit | 0d32e05b52fcbafa60f3c939a327ba4019d022ce (patch) | |
tree | 49d41e97e71c8b415cde31c834709333e0e68802 /technic_chests | |
parent | 82f4862e73b76b5f5f13215e1bae61c83038efce (diff) |
Fix stack count fetching
Diffstat (limited to 'technic_chests')
-rw-r--r-- | technic_chests/common.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/technic_chests/common.lua b/technic_chests/common.lua index 86c0c38..ccf72f8 100644 --- a/technic_chests/common.lua +++ b/technic_chests/common.lua @@ -41,10 +41,10 @@ function technic.chests.inv_move(pos, from_list, from_index, to_list, to_index, return inv_change(pos, count, player) end function technic.chests.inv_put(pos, listname, index, stack, player) - return inv_change(pos, count, player) + return inv_change(pos, stack:get_count(), player) end function technic.chests.inv_take(pos, listname, index, stack, player) - return inv_change(pos, count, player) + return inv_change(pos, stack:get_count(), player) end function technic.chests.on_inv_move(pos, from_list, from_index, to_list, to_index, count, player) |