handle AE again

This commit is contained in:
kepler155c
2018-02-02 16:53:50 -05:00
parent 8d8c18c3db
commit 3298c41f3a

View File

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