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 aeeb8c11fd - Show all commits

View File

@@ -66,10 +66,10 @@ function ExportTask:cycle(context)
end
local function exportItems()
node.cacheList = node.adapter.list()
for key in pairs(entry.filter) do
local items = Milo:getMatches(itemDB:splitKey(key), entry)
for _,item in pairs(items) do
node.cacheList = node.adapter.list()
if node.adapter.size() ~= Util.size(node.cacheList) then
-- Here we have a storage which has at least 1 unpopulated slot, we can fire'n'forget into this
if context.storage:export(node, nil, item.count, item) == 0 then
@@ -91,6 +91,7 @@ function ExportTask:cycle(context)
end
end
end
node.cacheList=nil
end
if type(entry.slot) == 'number' then
exportSingleSlot()