projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82f4862
)
Fix stack count fetching
author
ShadowNinja
<shadowninja@minetest.net>
Wed, 18 Dec 2013 22:10:25 +0000
(17:10 -0500)
committer
ShadowNinja
<shadowninja@minetest.net>
Fri, 20 Dec 2013 19:38:16 +0000
(14:38 -0500)
technic_chests/common.lua
patch
|
blob
|
history
diff --git
a/technic_chests/common.lua
b/technic_chests/common.lua
index 86c0c38c78f6ab7ecb4829d3fc1b016eb8a27219..ccf72f897b77da48f4137ca52f63455affe257cb 100644
(file)
--- 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)