fix: only allocate main_inv once

This commit is contained in:
Emerson Rosen-Jones 2026-01-16 22:03:03 -05:00
parent 95ba994777
commit cc95868b29

View file

@ -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)