From f141588818e187349e5157cad27824105f812b6c Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Tue, 7 Feb 2023 20:04:59 +0100 Subject: [PATCH] Fix bug 'nvmstack' (a nil value) --- basic_machines/ta4_chest.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/basic_machines/ta4_chest.lua b/basic_machines/ta4_chest.lua index b3011c9..3063eca 100644 --- a/basic_machines/ta4_chest.lua +++ b/basic_machines/ta4_chest.lua @@ -22,6 +22,7 @@ local STACK_SIZE = 2000 local function gen_stack(inv, idx) inv[idx] = {name = "", count = 0} + return inv[idx] end local function gen_inv(nvm)