From cc95868b29e3f522fc8713e332cd87e589466cce Mon Sep 17 00:00:00 2001 From: Emerson Rosen-Jones Date: Fri, 16 Jan 2026 22:03:03 -0500 Subject: [PATCH] fix: only allocate main_inv once --- compacting-storage.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compacting-storage.lua b/compacting-storage.lua index 276da79..1bc49a6 100644 --- a/compacting-storage.lua +++ b/compacting-storage.lua @@ -161,8 +161,8 @@ function print_counts (items) end end +local main_inv = peripheral.wrap(MAIN_TICKER) while true do - local main_inv = peripheral.wrap(MAIN_TICKER) -- 1. Sum items in inventory and organize by item type local items = sum_items(main_inv.stock) -- print_counts(items)