milo logging

This commit is contained in:
kepler155c@gmail.com
2019-03-16 21:30:24 -04:00
parent ebd0896ee9
commit 4362a92193
6 changed files with 58 additions and 34 deletions

View File

@@ -55,10 +55,7 @@ function ImportTask:cycle(context)
return node.adapter.getItemMeta(slotNo)
end)
if item and matchesFilter(item) then
if context.storage:import(node, slotNo, item.count, item) ~= item.count then
_G._debug('IMPORTER warning: Failed to import %s(%d) %s[%d]',
node.displayName or node.name, slotNo, item.name, item.count)
end
context.storage:import(node, slotNo, item.count, item)
end
end