milo fixes

This commit is contained in:
kepler155c
2018-11-19 17:18:02 -05:00
parent cc913bc10c
commit 4df1b30098
2 changed files with 7 additions and 2 deletions

View File

@@ -407,8 +407,9 @@ function page:applyFilter()
end
Event.addRoutine(function()
local sleepTime = 1.5
while true do
os.sleep(1.5)
os.sleep(sleepTime)
if config.deposit then
local neural = device.neuralInterface
local inv = config.useShield and 'getEquipment' or 'getInventory'
@@ -432,7 +433,10 @@ Event.addRoutine(function()
end
page.grid:draw()
page:sync()
sleepTime = math.max(sleepTime - .25, .25)
end
else
sleepTime = math.min(sleepTime + .25, 1.5)
end
end
end

View File

@@ -15,7 +15,8 @@ function ImportTask:cycle(context)
local function itemMatchesFilter(item)
if not entry.ignoreDamage and not entry.ignoreNbtHash then
return entry.filter[item.key]
local key = Milo:uniqueKey(item)
return entry.filter[key]
end
for key in pairs(entry.filter) do