Support main_product
https://mods.factorio.com/mod/hot-metals/discussion/6773e919c568cd84f3f0884f
This commit is contained in:
parent
22eadcd9f8
commit
ee97c9cb52
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@ function createHotVariant(item)
|
||||||
if contains(HotMetals.craftingCategories, recipe.category) and recipe.results[1].name == itemName then
|
if contains(HotMetals.craftingCategories, recipe.category) and recipe.results[1].name == itemName then
|
||||||
recipe.results[1].name = hotItem.name
|
recipe.results[1].name = hotItem.name
|
||||||
recipe.localised_name = { "item-name." .. itemName }
|
recipe.localised_name = { "item-name." .. itemName }
|
||||||
|
if recipe.main_product == itemName then
|
||||||
|
recipe.main_product = hotItem.name
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue