However on 2.0.6, the `main_product` and/or singular result only causes the icon and subgroup of a recipe to be defaulted, unless the recipe prototype name is identical to the item prototype name of the main product. As well as not matching the documentation this seems like a bad change, since I don't know why you would ever want to default the icon and subgroup but not the localised name. Can it be reverted to the old behaviour?For recipes with one or more products: Subgroup, localised_name and icon default to the values of the singular/main product, but can be overwritten by the recipe. Setting the main_product to an empty string ("") forces the title in the recipe tooltip to use the recipe's name (not that of the product) and shows the products in the tooltip.
Code: Select all
data:extend({
{
type = "recipe",
name = "foo-iron-chest", // works if name = "iron-chest"
ingredients = {{type = "item", name = "iron-plate", amount = 10}},
results = {{type = "item", name = "iron-chest", amount = 1}},
main_product = "iron-chest",
energy_required = 1,
}
})