From ee97c9cb521b8e4d61370f954f2b785b6d189db3 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 1 Jan 2025 10:20:06 +0100 Subject: [PATCH] Support main_product https://mods.factorio.com/mod/hot-metals/discussion/6773e919c568cd84f3f0884f --- hot-metals/prototypes/hot-metals.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hot-metals/prototypes/hot-metals.lua b/hot-metals/prototypes/hot-metals.lua index 3847ce9..95e6ceb 100644 --- a/hot-metals/prototypes/hot-metals.lua +++ b/hot-metals/prototypes/hot-metals.lua @@ -26,6 +26,9 @@ function createHotVariant(item) if contains(HotMetals.craftingCategories, recipe.category) and recipe.results[1].name == itemName then recipe.results[1].name = hotItem.name recipe.localised_name = { "item-name." .. itemName } + if recipe.main_product == itemName then + recipe.main_product = hotItem.name + end end end