From 3298c41f3a5db69a843842b1c81da353995711d7 Mon Sep 17 00:00:00 2001 From: kepler155c Date: Fri, 2 Feb 2018 16:53:50 -0500 Subject: [PATCH] handle AE again --- apis/chestAdapter18.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/chestAdapter18.lua b/apis/chestAdapter18.lua index 474ded1..18186f1 100644 --- a/apis/chestAdapter18.lua +++ b/apis/chestAdapter18.lua @@ -46,8 +46,8 @@ function ChestAdapter:getItemDetails(index, item) return detail else local detail = self.findItems(item) - if detail then - return detail.getMetadata() + if detail and #detail > 0 then + return detail[1].getMetadata() end end end