diff --git a/compacting-storage.lua b/compacting-storage.lua index 0fed021..9390591 100644 --- a/compacting-storage.lua +++ b/compacting-storage.lua @@ -161,11 +161,11 @@ function print_counts (items) end end -local main_inv = peripheral.wrap(MAIN_TICKER) +local main_t = peripheral.wrap(MAIN_TICKER) local request_t = peripheral.wrap(REQUEST_TICKER) while true do -- 1. Sum items in inventory and organize by item type - local items = sum_items(main_inv.stock) + local items = sum_items(main_t.stock) -- print_counts(items) -- 2. either work towards a desired distribution or create more resources