Correct error

This commit is contained in:
Cody Young 2023-03-21 00:06:01 -05:00
parent d2957509a9
commit 642135ca15
1 changed files with 1 additions and 2 deletions

View File

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