From 12b871d518046e11bd33a7f43f45ad8c37a8baba Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sun, 13 Mar 2016 14:26:55 +0000 Subject: Allow moving item stacks to cart inventory, fixes #5 --- railcart/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3