Add furniController.lua #37

Merged
drucifer-sc merged 13 commits from develop-1.8 into develop-1.8 2020-05-24 00:09:23 -04:00
Showing only changes of commit 5a8dbd6589 - Show all commits

View File

@@ -69,8 +69,8 @@ function ExportTask:cycle(context)
for key in pairs(entry.filter) do
local items = Milo:getMatches(itemDB:splitKey(key), entry)
for _,item in pairs(items) do
if context.storage:export(node, nil, item.count, item) == 0 then
-- TODO: really shouldn't break here as there may be room in other slots
if node.adapter.size() ~= Util.size(node.adapter.list()) and context.storage:export(node, nil, item.count, item) == 0 then
-- TODO: really shouldn't break here as there may be room in other slots (probably not)
-- leaving for now for performance reasons
break
end