Config resets when setting numerical values to numbers without decimal points
TheDeviantCrafter opened this issue ยท 1 comments
Minecraft Version
1.18.x
Mod Loader
Forge
Mod Loader Version
40.1.52
Mod Version
10.1.0
Describe the Issue
When changing any number in the config, the entire config resets if the number does not include a decimal point. "1.0" is fine, "1" is not.
For example, change the value of this setting: maximumBaseXpCost = 3
- maximumBaseXpCost = 3 is the default setting. This works as expected.
- maximumBaseXpCost = 5 causes the config to reset to default
- maximumBaseXpCost = 5.0 works as expected
The config should change numbers to their decimal form rather than resetting the config. (IE: Change 1 to 1.0).
It should also reset just that value, rather than resetting the entire config.
Logs
No response
Do you use any performance-enhancing mods (e.g. OptiFine)?
No response