Displayed speed slider value is one off from set value when reopening options menu
jmolloy19 opened this issue ยท 1 comments
Describe the bug
When opening the options menu and using the slider to set a tick speed, the text within the slider will display/confirm a selected tick speed. When closing the options menu and re-opening, the displayed tick speed within the slider is one off from previously displayed/set tick speed.
To Reproduce
Steps to reproduce the behavior:
- Open options menu, and set any speed slider to 35 ticks as displayed set value.
- Close options menu, and reopen options menu to view speed slider displaying a value of 34 ticks.
Expected behavior
Expect the displayed set value in slider to persist on closing and re-opening options menu.
Screenshots
Setting all speed sliders to 35 ticks
Closing and reopening options menu
Minecraft Enviorment
- Minecraft Version: 1.19.3
- XRay Mod Version: 1.5.0
- Fabric Version: fabric-api-0.72.0+1.19.3
Additional context
The issue seems to happen only for certain odd integer values, and when it does happen, the error is consistently one less than actual selected value.