Correct error
This commit is contained in:
@@ -9,7 +9,7 @@ local driver = {}
|
|||||||
local ItemStack = {}
|
local ItemStack = {}
|
||||||
|
|
||||||
function ItemStack.new(item)
|
function ItemStack.new(item)
|
||||||
checkARg(1, item, "table");
|
checkArg(1, item, "table");
|
||||||
local out = {
|
local out = {
|
||||||
data = item.getValue1(),
|
data = item.getValue1(),
|
||||||
quantity = item.getValue2()
|
quantity = item.getValue2()
|
||||||
@@ -43,7 +43,6 @@ function driver.getItems()
|
|||||||
end
|
end
|
||||||
local output = {}
|
local output = {}
|
||||||
for _,item in pairs(pipe.getAvailableItems()) do
|
for _,item in pairs(pipe.getAvailableItems()) do
|
||||||
print("Found an iteam");
|
|
||||||
table.insert(output, ItemStack.new(item))
|
table.insert(output, ItemStack.new(item))
|
||||||
end
|
end
|
||||||
return output
|
return output
|
||||||
|
|||||||
Reference in New Issue
Block a user