From 85965d75ef128bd9299b33753a441dd1cd998721 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Tue, 18 May 2021 21:28:55 +0200 Subject: [PATCH] Fix pusher bug --- basis/conf_inv.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/conf_inv.lua b/basis/conf_inv.lua index b5abce3..88aa4f3 100644 --- a/basis/conf_inv.lua +++ b/basis/conf_inv.lua @@ -92,7 +92,7 @@ end function inv_lib.take_item(pos, inv, listname, num, stacks) local mem = techage.get_mem(pos) mem.ta_startpos = mem.ta_startpos or 1 - local size = #stacks + local size = #(stacks or {}) for i = 1, size do local idx = stacks[((i + mem.ta_startpos) % size) + 1] local stack = inv:get_stack(listname, idx)