From 045d1d18450e6828c48f996e86c10efc0bf0c4da Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 15 May 2025 23:53:06 +0200 Subject: [PATCH] Fix typo: input.cost -> input.count --- recipe.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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