summaryrefslogtreecommitdiff
path: root/railcart/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'railcart/init.lua')
-rw-r--r--railcart/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/railcart/init.lua b/railcart/init.lua
index ea4893c..bd74ab9 100644
--- a/railcart/init.lua
+++ b/railcart/init.lua
@@ -13,7 +13,7 @@ local function create_detached_inventory(id)
railcart:save()
end,
allow_put = function(inv, listname, index, stack, player)
- return 1
+ return stack:get_count()
end,
allow_take = function(inv, listname, index, stack, player)
return stack:get_count()