1.7.10 compatibility

This commit is contained in:
kepler155c
2018-03-08 11:46:05 -05:00
parent d905e97aec
commit 1e59c9301f

View File

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