Fix stack count fetching
authorShadowNinja <shadowninja@minetest.net>
Wed, 18 Dec 2013 22:10:25 +0000 (17:10 -0500)
committerShadowNinja <shadowninja@minetest.net>
Fri, 20 Dec 2013 19:38:16 +0000 (14:38 -0500)
technic_chests/common.lua

index 86c0c38c78f6ab7ecb4829d3fc1b016eb8a27219..ccf72f897b77da48f4137ca52f63455affe257cb 100644 (file)
@@ -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)