diff --git a/recipe.lua b/recipe.lua index bcce899..56368e4 100644 --- a/recipe.lua +++ b/recipe.lua @@ -27,10 +27,6 @@ function prototype:canAfford(chests) for item,cost in pairs(costs) do local group = storage:findAllGroups({ item = item, total = function(checkTotal) return checkTotal >= cost end }) if #group == 0 then - local totalMissing = cost - if group ~= nil then - totalMissing = totalMissing - group.total - end table.insert(missing, item) end end