From d5b550d074f28c6e22a7e8f5980810fd1d7eeeec Mon Sep 17 00:00:00 2001 From: kepler155c Date: Fri, 2 Feb 2018 16:31:15 -0500 Subject: [PATCH] handle AE again --- apis/chestAdapter18.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apis/chestAdapter18.lua b/apis/chestAdapter18.lua index 97d649b..45a7027 100644 --- a/apis/chestAdapter18.lua +++ b/apis/chestAdapter18.lua @@ -26,13 +26,17 @@ function ChestAdapter:init(args) Util.merge(self, chest) end - if chest.list or chest.listAvailableItems then + if chest.listAvailableItems then + chest.list = chest.listAvailableItems + end + + if chest.list then return chest end end function ChestAdapter:isValid() - return not not (self.list or self.listAvailableItems) + return not not self.list end -- handle both AE/RS and generic inventory