app tweaks
This commit is contained in:
@@ -522,11 +522,13 @@ function Storage:import(source, slot, count, item)
|
||||
end
|
||||
|
||||
-- find a chest locked with this item
|
||||
local doVoid
|
||||
|
||||
for node in self:onlineAdapters() do
|
||||
if node.lock and node.lock[key] then
|
||||
insert(node.adapter, item)
|
||||
if count > 0 and node.void then
|
||||
return total + self:trash(source, slot, count, item)
|
||||
doVoid = true
|
||||
end
|
||||
end
|
||||
if count <= 0 then
|
||||
@@ -534,6 +536,10 @@ function Storage:import(source, slot, count, item)
|
||||
end
|
||||
end
|
||||
|
||||
if doVoid then
|
||||
return total + self:trash(source, slot, count, item)
|
||||
end
|
||||
|
||||
-- is this item in some chest
|
||||
if self.cache[key] then
|
||||
for node, adapter in self:onlineAdapters() do
|
||||
|
||||
Reference in New Issue
Block a user