Correct error

This commit is contained in:
2023-03-21 00:06:01 -05:00
parent d2957509a9
commit 642135ca15

View File

@@ -9,7 +9,7 @@ local driver = {}
local ItemStack = {}
function ItemStack.new(item)
checkARg(1, item, "table");
checkArg(1, item, "table");
local out = {
data = item.getValue1(),
quantity = item.getValue2()
@@ -43,7 +43,6 @@ function driver.getItems()
end
local output = {}
for _,item in pairs(pipe.getAvailableItems()) do
print("Found an iteam");
table.insert(output, ItemStack.new(item))
end
return output