Update AllMusicPlayer.java

This commit is contained in:
Color_yr committed 2026-08-01 15:39:11 +08:00
1 parent 208d6a9dce
commit de187bb66a
1 file changed
+4 -1
@@ -139,7 +139,10 @@ public class AllMusicPlayer extends InputStream {
float temp = AllMusicCore.bridge.getVolume();
float now = AL10.alGetSourcef(index, AL10.AL_GAIN);
if (isChat) {
temp *= 0.2F;
temp *= 0.5F;
}
if (temp < 0.05F) {
temp = 0.05F;
}
if (now != temp) {
AL10.alSourcef(index, AL10.AL_GAIN, temp);