[0.15.12] Changing prototypes doesn't fire on_configuration_changed
Posted: Mon May 22, 2017 4:14 pm
When making recipes use startup mod settings to vary their result, e.g. barrel fluid capacity and stack size, on_configuration_changed does not fire after only changing these startup settings.
That means there is no built in way to reliably call reset_recipes when such a setting was changed for existing games.
on_configuration_changed should fire whenever prototype parameters change.
Alternatively startup settings could have a bool flag "requires_reset_recipes" which when set would make factorio do the recipe reset by itself.
The benefit of this would be not having every mod calling reset_recipes separately.
That means there is no built in way to reliably call reset_recipes when such a setting was changed for existing games.
on_configuration_changed should fire whenever prototype parameters change.
Alternatively startup settings could have a bool flag "requires_reset_recipes" which when set would make factorio do the recipe reset by itself.
The benefit of this would be not having every mod calling reset_recipes separately.