
[Bug] Click the video setting then crash | The maximum value must be greater than the minimum value
DeliciousBread481 opened this issue · 1 comments
Bug Description
When I click the video setting,then game will crash
and I have tried delete the sodium-options.json
but I re-start the game and click the video setting,it will still crash
java.lang.IllegalArgumentException: The maximum value must be greater than the minimum value
at knot//net.caffeinemc.mods.sodium.client.gui.options.control.SliderControl.<init>(SliderControl.java:21)
at knot//net.caffeinemc.mods.sodium.client.gui.SodiumGameOptionPages.lambda$general$14(SodiumGameOptionPages.java:97)
Reproduction Steps
1.start the game
2.click the video setting
Log File
Crash Report
I have the same trouble when I'm playing it remotely with a virtual screen (Linux Mint, X11, "modesetting" driver).
The error message comes from here,
so I've inserted this line above it
if (!(max > min)) max=min+1;
Then it worked (at least no crash in my testing).
It is notable that there are no "Max Shadow Distance" setting, but I'm not sure it's related to this bug.
