neural flying
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user