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

View File

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