fix attempt 1

This commit is contained in:
Izaya 2020-01-10 05:38:48 +11:00
parent 0d0ac7f278
commit 226aae1d4c
2 changed files with 2 additions and 4 deletions

View File

@ -13,8 +13,8 @@ local function search()
end
local function setOutput()
io.write("\n\27[2KOutput side:")
local in = io.read()
output = tonumber(in) or sides[in]
local ins = io.read()
output = tonumber(ins) or sides[ins]
end
local function extract(res)

View File

@ -29,7 +29,6 @@ end
function inv.cacheInvalidation() -- re-index only if necessary
if computer.uptime() > inv.cacheTime + 300 or inv.cacheInvalid then
inv.index()
inv.loadLists()
end
end
@ -90,7 +89,6 @@ function inv.extractItem(slot,count,output)
return tcount
end
inv.loadLists()
inv.index()
return inv