summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2016-03-13 14:26:55 +0000
committerstujones11 <stujones111@gmail.com>2016-03-13 14:26:55 +0000
commit12b871d518046e11bd33a7f43f45ad8c37a8baba (patch)
treeb8b6a9f93cf5b473d4bab69c0d0f7f0d56b6ed68
parenta1d24931c1e6660624e85cd544935111877e2f2b (diff)
Allow moving item stacks to cart inventory, fixes #5
-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()