handle AE again
This commit is contained in:
@@ -26,13 +26,17 @@ function ChestAdapter:init(args)
|
|||||||
Util.merge(self, chest)
|
Util.merge(self, chest)
|
||||||
end
|
end
|
||||||
|
|
||||||
if chest.list or chest.listAvailableItems then
|
if chest.listAvailableItems then
|
||||||
|
chest.list = chest.listAvailableItems
|
||||||
|
end
|
||||||
|
|
||||||
|
if chest.list then
|
||||||
return chest
|
return chest
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function ChestAdapter:isValid()
|
function ChestAdapter:isValid()
|
||||||
return not not (self.list or self.listAvailableItems)
|
return not not self.list
|
||||||
end
|
end
|
||||||
|
|
||||||
-- handle both AE/RS and generic inventory
|
-- handle both AE/RS and generic inventory
|
||||||
|
|||||||
Reference in New Issue
Block a user