Up-Mods / OkZoomer

Adds a highly-configurable zoom key. The zoom is yours!
133 stars 25 forks source link

Crash when attempting to save a minimum zoom divisor that does not satisfy constraints for type DecimalSerializableType #33

Closed ghost closed 2 years ago

ghost commented 3 years ago

Upon trying to save a value (0.0) for the minimum zoom divisor that is lower than the minimum value allowed for its type (2.2250738585072014E-308), the game crashes. Based on the crash report, it seems that this issue could be solved by simply enforcing a reasonable minimum value before being allowed to save the mod's options.

Minecraft Version: 1.17.1

Relevant Mod Versions:

Full mod list with respective versions can be found in the crash report.

Crash Report: crash-2021-07-20_17.52.48-client.txt

EnnuiL commented 2 years ago

The next update fixes that issue by using a custom option widget in order to enforce a range limit to the input boxes