Fix typo: input.cost -> input.count

This commit is contained in:
Gabriel Tofvesson 2025-05-15 23:53:06 +02:00
parent e6d598a05c
commit 045d1d1845

View File

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