mojira.dev
MC-55833

Some sliders can be set to both 0% and OFF

The bug

In the options, percentage sliders can be set to both "0%" and "OFF".

How to reproduce

  1. Navigate to your music and sounds settings

  2. Drag any slider within the menu to the far left (the slider reads "OFF")

  3. Drag the slider a tiny bit to the right (the slider reads "0%")

Expected behavior

Sliders would not be able to be set to both "0%" and "OFF". Instead, only one of the two values should be shown.

Linked issues

MC-62633 Brightness in video settings has +0% and moody Resolved MC-69542 0% and OFF are two different options when adjusting volume Resolved MC-73738 Master Volume slider is on 0% (NOT off) but i have still Sound! Resolved MC-127488 Weather effect "Thunder" not quiet when Weather effect is 0% Resolved MC-167244 Percentage sliders have 0% option Resolved

Attachments

Comments 42

Your Java version is OUT OF DATE! Please update to the latest version, which can be found here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Sorry, i have the right java but i tried to fix my minecraft because the new java didn't work with it, but i had the 1.7.0.

This is more a optical glitch due to the rounding of the volume display to zero decimal digits.
You've set the volume slider to something value between 0.00% and 0.49% which will be shown as 0% (whereas values from 0.50% to 1.49% will be shown as 1%)
This is unfixable.

Why unfixable?
It would be easy to fix that, by rounding the value and making IF statement.
if(Soundbar1.roundValue==0%) {
Soundbar1.value = 0%;
}

I also don't understand what the problem is...
Could you please reopen this?

32 more comments

Can confirm in 1.19.

Can confirm in 1.19.2.

In 23w05a, this affects both the new "Glint Speed" and "Glint Strength" sliders.

It's the way the game is coded, when you set it very close to 0% its actually 0.x% and if x<5 it rounds up to 0%. 
You can even still hear stuff if the slider is set to 0% but technically 0%<x<1%

I don't think it should be fixed, maybe just me but this makes more sense than making it say OFF or 1%

All bugs are "the way the game is coded", and this can simply be resolved by making it always round up, or treat volume values as integers, not doubles/floats.

Mojang has already assigned a priority to this, so it's been triaged; meaning they're 99% likely to fix this.

Mikko Sipola

[Mod] markderickson

(Unassigned)

Confirmed

Platform

Low

UI

Minecraft 14w21b, Minecraft 14w30a, Minecraft 1.8-pre2, Minecraft 1.8-pre3, Minecraft 1.8, ..., 1.20.5 Pre-Release 3, 24w21b, 1.21, 1.21.4, 25w05a

Retrieved