From 1e59c9301fe13dbbc10bfa8023a19a9c37e68b1b Mon Sep 17 00:00:00 2001 From: kepler155c Date: Thu, 8 Mar 2018 11:46:05 -0500 Subject: [PATCH] 1.7.10 compatibility --- apis/meAdapter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/meAdapter.lua b/apis/meAdapter.lua index 389a131..94091a6 100644 --- a/apis/meAdapter.lua +++ b/apis/meAdapter.lua @@ -208,7 +208,7 @@ end function MEAdapter:provide(item, qty, slot, direction) return pcall(function() - for _,stack in pairs(self.getAllStacks(false)) do + for _,stack in pairs(self.getAvailableItems('all')) do if stack.item.id == item.name and (not item.damage or stack.item.dmg == item.damage) and (not item.nbtHash or stack.item.nbt_hash == item.nbtHash) then