From 45d43a8d0cd521051825c6cd72ce0b2415bc7940 Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 21 Feb 2025 22:26:56 -0800 Subject: [PATCH] hot metal fix --- carbon-util.lua | 4 ++++ changelog.txt | 5 +++++ info.json | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/carbon-util.lua b/carbon-util.lua index 1474a31..c6a4f7c 100644 --- a/carbon-util.lua +++ b/carbon-util.lua @@ -30,6 +30,10 @@ function cutil.nanotube_recipe(recipe_name, item_name, tech) new_recipe.hide_from_signal_gui = false data:extend({new_recipe}) local amt = 2 * util.get_amount(recipe_name, item_name) + if amt == 0 and mods["hot-metals"] then + amt = 2 * util.get_amount(recipe_name, "hot-"..item_name) + util.set_product_amount(new_recipe.name, "hot-"..item_name, amt, {force=true}) + end util.add_ingredient(new_recipe.name, "nanotubes", amt, {force=true}) util.set_product_amount(new_recipe.name, item_name, amt, {force=true}) util.add_unlock(tech, new_recipe.name) diff --git a/changelog.txt b/changelog.txt index 29138ad..69b36ed 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.8 +Date: 2025-02-13 + Fixes: + - Space Age: With Hot metals, fix new LDS casting nanotube recipe. +--------------------------------------------------------------------------------------------------- Version: 2.0.7 Date: 2025-02-13 Fixes: diff --git a/info.json b/info.json index 2e25979..6be0557 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzcarbon", - "version": "2.0.7", + "version": "2.0.8", "factorio_version": "2.0", "title": "Graphite & Diamonds", "author": "Brevven",