asteroid crushing recipe in signal gui
This commit is contained in:
parent
7e99170f27
commit
e04739d9db
4 changed files with 13 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bzzirconium",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"factorio_version": "2.0",
|
||||
"title": "Zirconium",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue