neural flying

This commit is contained in:
kepler155c
2018-11-14 19:12:29 -05:00
parent a460bc31f3
commit 2abbece8c3
2 changed files with 88 additions and 69 deletions

View File

@@ -351,18 +351,6 @@ function Storage:import(source, slot, count, item)
end
end
-- is this item in some chest
if self.cache[key] then
for node, adapter in self:onlineAdapters() do
if count <= 0 then
return total
end
if adapter.cache and adapter.cache[key] and not node.lock then
insert(adapter)
end
end
end
if not itemDB:get(item) then
if item.displayName then
-- this item already has metadata
@@ -377,6 +365,18 @@ function Storage:import(source, slot, count, item)
end
end
-- is this item in some chest
if self.cache[key] then
for node, adapter in self:onlineAdapters() do
if count <= 0 then
return total
end
if adapter.cache and adapter.cache[key] and not node.lock then
insert(adapter)
end
end
end
-- high to low priority
for remote in self:onlineAdapters() do
if count <= 0 then