builder upgrade
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user