I need to check if startup settings of my mod were changed since the last save.
My mod changes some colors on the map preview and I need to call game.forces.player.rechart() if settings were changed.
Event on_runtime_mod_setting_changed doesn't seem to be triggered in this situation and I cannot find any other that would fit better.
How to detect change of startup mod settings
How to detect change of startup mod settings
I am a translator. And what did you do for Factorio?
Check out my mod "Realistic Ores" and my other mods!
Check out my mod "Realistic Ores" and my other mods!
Re: How to detect change of startup mod settings
Thanks! mod_startup_settings_changed works.
It's bad that it doesn't tell you which setting has changed, though. Only some of them require recharting the map.
It's bad that it doesn't tell you which setting has changed, though. Only some of them require recharting the map.
I am a translator. And what did you do for Factorio?
Check out my mod "Realistic Ores" and my other mods!
Check out my mod "Realistic Ores" and my other mods!