Fix typo: input.cost -> input.count
This commit is contained in:
parent
e6d598a05c
commit
045d1d1845
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user