1.7.10 compatibility
This commit is contained in:
@@ -84,7 +84,7 @@ function ChestAdapter:listItems(throttle)
|
|||||||
throttle = throttle or Util.throttle()
|
throttle = throttle or Util.throttle()
|
||||||
|
|
||||||
-- getAllStacks sometimes fails
|
-- getAllStacks sometimes fails
|
||||||
pcall(function()
|
local s, m = pcall(function()
|
||||||
for _,v in pairs(self.getAllStacks(false)) do
|
for _,v in pairs(self.getAllStacks(false)) do
|
||||||
if v.qty > 0 then
|
if v.qty > 0 then
|
||||||
convertItem(v)
|
convertItem(v)
|
||||||
@@ -104,9 +104,13 @@ function ChestAdapter:listItems(throttle)
|
|||||||
itemDB:flush()
|
itemDB:flush()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
if not Util.empty(items) then
|
if s then
|
||||||
self.cache = cache
|
if not Util.empty(items) then
|
||||||
return items
|
self.cache = cache
|
||||||
|
return items
|
||||||
|
end
|
||||||
|
else
|
||||||
|
debug(m)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user