diff --git a/recipe.lua b/recipe.lua index 56368e4..b3123b6 100644 --- a/recipe.lua +++ b/recipe.lua @@ -38,7 +38,7 @@ function prototype:beginCrafting(chests) local storage = stackgroup.fromChests(table.unpack(chests)) for _,input in pairs(self.inputs) do - local group = storage:findAllGroups({ item = input.item, total = function(checkTotal) return checkTotal >= input.cost end })[1] + local group = storage:findAllGroups({ item = input.item, total = function(checkTotal) return checkTotal >= input.count end })[1] group:moveItemsToPeripheral(chests, input.count, input.machine, input.slot) end