diff --git a/carbon-util.lua b/carbon-util.lua index 06e487f..1474a31 100644 --- a/carbon-util.lua +++ b/carbon-util.lua @@ -11,11 +11,19 @@ function cutil.nanotube_recipe(recipe_name, item_name, tech) local new_recipe = futil.table.deepcopy(data.raw.recipe[recipe_name]) new_recipe.name = recipe_name.."-nanotubes" - new_recipe.localised_name = {"item-name."..item_name} - new_recipe.icons = { - { icon = data.raw.item[item_name].icon, icon_size = data.raw.item[item_name].icon_size}, - { icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}}, - } + if new_recipe.subgroup == "vulcanus-processes" then + new_recipe.localised_name = {"recipe-name."..recipe_name} + new_recipe.icons = { + { icon = data.raw.recipe[recipe_name].icon, icon_size = data.raw.recipe[recipe_name].icon_size}, + { icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}}, + } + else + new_recipe.localised_name = {"item-name."..item_name} + new_recipe.icons = { + { icon = data.raw.item[item_name].icon, icon_size = data.raw.item[item_name].icon_size}, + { icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}}, + } + end new_recipe.icon = nil new_recipe.icon_size = nil new_recipe.icon_mipmaps = nil diff --git a/changelog.txt b/changelog.txt index f2057c5..29138ad 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,7 +1,10 @@ --------------------------------------------------------------------------------------------------- Version: 2.0.7 Date: 2025-02-13 + Fixes: + - Space Age: Fix LDS recipes, plastic was not supposed to be removed. Changes: + - Space Age: Add nanotubes recipe for casting LDS. - Space Age: Show asteroid crushing recipe in signal GUI - Space Age: Show alternative nanotube recipes in signal GUI --------------------------------------------------------------------------------------------------- diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 452b431..28aa3ae 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -71,9 +71,11 @@ if data.raw.recipe["low-density-structure"] and end if util.me.use_fiber() then - util.remove_ingredient("low-density-structure", "plastic-bar") - util.remove_ingredient("low-density-structure-nanotubes", "plastic-bar") - util.remove_ingredient("se-low-density-structure-beryllium", "plastic-bar") + if not mods["space-age"] then + util.remove_ingredient("low-density-structure", "plastic-bar") + util.remove_ingredient("low-density-structure-nanotubes", "plastic-bar") + util.remove_ingredient("se-low-density-structure-beryllium", "plastic-bar") + end end diff --git a/nanotubes-final.lua b/nanotubes-final.lua index 6871c46..71e1b52 100644 --- a/nanotubes-final.lua +++ b/nanotubes-final.lua @@ -3,5 +3,6 @@ local cutil = require("carbon-util") if util.me.use_fullerenes() then cutil.nanotube_recipe("low-density-structure") + cutil.nanotube_recipe("casting-low-density-structure", "low-density-structure") cutil.nanotube_recipe("space-platform-foundation") end