plethora import/export support

This commit is contained in:
kepler155c
2018-03-29 17:47:16 -04:00
parent 1bf79de220
commit d82cef0546
2 changed files with 3 additions and 7 deletions

View File

@@ -243,14 +243,11 @@ function MEAdapter:provide(item, qty, slot, direction)
end) end)
end end
function MEAdapter:insert(slot, count) function MEAdapter:insert(slot, qty, toSlot)
local s, m = pcall(function() self.pullItem(self.direction, slot, count) end) local s, m = pcall(self.pullItem, self.direction, slot, qty, toSlot)
if not s and m then if not s and m then
os.sleep(1) os.sleep(1)
s, m = pcall(function() self.pullItem(self.direction, slot, count) end) pcall(self.pullItem, self.direction, slot, qty, toSlot)
if not s and m then
error(m)
end
end end
end end

View File

@@ -81,7 +81,6 @@ _G._p = self.jobList
if job.name == item.name and if job.name == item.name and
job.damage == item.damage and job.damage == item.damage and
job.nbtHash == item.nbtHash then job.nbtHash == item.nbtHash then
debug('still crafting')
return true return true
end end
end end