From 795438504f577ba14d4394b3135585a7a0d65383 Mon Sep 17 00:00:00 2001 From: Brevven Date: Mon, 17 Feb 2025 22:52:31 -0800 Subject: [PATCH] up --- data-util.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/data-util.lua b/data-util.lua index 0560a31..f658475 100644 --- a/data-util.lua +++ b/data-util.lua @@ -928,7 +928,12 @@ function add_product(recipe, product) if recipe ~= nil then if product.name and data.raw[product.type][product.name] then if recipe.results == nil then - recipe.results = {{recipe.result, recipe.result_count and recipe.result_count or 1}} + recipe.results = {} + end + for _, old in pairs(recipe.results) do + if old.name == product.name then + return + end end recipe.result = nil recipe.result_count = nil