Waystones (Fabric Edition)

Waystones (Fabric Edition)

4M Downloads

Config resets when setting numerical values to numbers without decimal points

TheDeviantCrafter opened this issue ยท 1 comments

commented

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

commented

The config loading and correcting is handled by Forge so unfortunately I can't do anything about this. However, it looks like Forge fixed this issue in 1.19.x.