Mod cannot recover from an invalid config
EntityinArray opened this issue ยท 1 comments
Steps to reproduce:
- Launch the game and join a world
- Open
autoswitchAttackAction.cfg
- Add a line
block@immersive_weathering:grass_growth_replaceable = any
- Notice how mod stops working, trying to erase this line also doesn't work anymore
- Run
/autoswitch cacheSwitchResults true
(we didn't change anything, just made the mod rewrite configs) - Notice how it replaced our
block@immersive_weathering:grass_growth_replaceable = any
withblock@immersive_weathering = grass_growth_replaceable = any
- The mod won't let go of
block@immersive_weathering = grass_growth_replaceable = any
until you fully exit the game, save the config and launch the game again
Potential solution:
Your mod tries to "fix" an invalid config, which is a bad thing to do. It would be better if it ignored invalid configs and went with default settings instead.