From e04739d9db4bb33e6744d4e4a52cabeeb5e627b7 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 16 Feb 2025 14:43:45 -0800 Subject: [PATCH] asteroid crushing recipe in signal gui --- changelog.txt | 5 +++++ data-util.lua | 7 ++++++- info.json | 2 +- zirconium-asteroid-updates.lua | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 76117bf..a530736 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.1.5 +Date: 2025-02-13 + Changes: + - Show asteroid crushing recipe in signal GUI +--------------------------------------------------------------------------------------------------- Version: 2.1.4 Date: 2025-02-08 Fixes: 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 diff --git a/info.json b/info.json index be0fae5..eae0b1d 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzzirconium", - "version": "2.1.4", + "version": "2.1.5", "factorio_version": "2.0", "title": "Zirconium", "author": "Brevven", diff --git a/zirconium-asteroid-updates.lua b/zirconium-asteroid-updates.lua index 91af9e1..f10d75f 100644 --- a/zirconium-asteroid-updates.lua +++ b/zirconium-asteroid-updates.lua @@ -30,6 +30,7 @@ if mods["space-age"] then {type = "item", name = "zirconia", amount = 3}, {type = "item", name = "oxide-asteroid-chunk", amount = 1, probability = 0.05} }, + hide_from_signal_gui = false, allow_productivity = true, allow_decomposition = false },