app tweaks

This commit is contained in:
kepler155c@gmail.com
2019-07-09 14:06:15 -04:00
parent 8067f3bd99
commit 0144c61b7f
4 changed files with 20 additions and 6 deletions

View File

@@ -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