builder upgrade

This commit is contained in:
kepler155c@gmail.com
2017-04-01 19:21:49 -04:00
parent 74e93068fb
commit 72bd16502b
14 changed files with 977 additions and 160 deletions

View File

@@ -54,7 +54,9 @@ function ChestProvider:getItemInfo(id, dmg)
item.max_size = stack.max_size
end
end
return item
if item.name then
return item
end
end
function ChestProvider:craft(id, dmg, qty)
@@ -79,7 +81,13 @@ function ChestProvider:provide(item, qty, slot)
end
end
end
function ChestProvider:extract(slot, qty)
if self.p then
self.p.pushItem(self.direction, slot, qty)
end
end
function ChestProvider:insert(slot, qty)
if self.p then
local s, m = pcall(function() self.p.pullItem(self.direction, slot, qty) end)