From e6d598a05c6cf06011a70cb48ca56cb4705d86a2 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 15 May 2025 23:45:59 +0200 Subject: [PATCH] Don't compute missing number of items for recipes --- recipe.lua | 4 ---- 1 file changed, 4 deletions(-) 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