fix: only allocate main_inv once
This commit is contained in:
parent
95ba994777
commit
cc95868b29
1 changed files with 1 additions and 1 deletions
|
|
@ -161,8 +161,8 @@ function print_counts (items)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local main_inv = peripheral.wrap(MAIN_TICKER)
|
||||||
while true do
|
while true do
|
||||||
local main_inv = peripheral.wrap(MAIN_TICKER)
|
|
||||||
-- 1. Sum items in inventory and organize by item type
|
-- 1. Sum items in inventory and organize by item type
|
||||||
local items = sum_items(main_inv.stock)
|
local items = sum_items(main_inv.stock)
|
||||||
-- print_counts(items)
|
-- print_counts(items)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue