You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using player.stopSound(String soundName, SoundCategory category), on 1.12.2 client (340) and lower, every sound of that channel will be stopped instead of only that specified sound name
Steps to Reproduce
public static void stopMusic(Player player, String name) {
var ver = getVersion(player); // 340 is 1.12.2
if (ver > 340) {
player.stopSound(name, SoundCategory.RECORDS);
} else {
player.stopSound(name);
}
}
There are 2 sounds played, one at the countdown, and one after the countdown ends and the game starts.
Actual behavior: On 1.12.2 client, both two sounds were stopped, instead of one
'/viaversion dump' Output
https://dump.viaversion.com/292dd8fdb6e2939975a7b7cae59e854b0fe10e9ddbb291eee4700d58f5e3fa47
Console Error
Bug Description
When using
player.stopSound(String soundName, SoundCategory category)
, on 1.12.2 client (340) and lower, every sound of that channel will be stopped instead of only that specified sound nameSteps to Reproduce
There are 2 sounds played, one at the countdown, and one after the countdown ends and the game starts.
Actual behavior: On 1.12.2 client, both two sounds were stopped, instead of one
https://cdn.discordapp.com/attachments/1102133845341507594/1137087084075700315/2023-08-05_01-03-54.mp4
Expected Behavior
The first sound (at the countdown) will be stopped when the game starts, then another sound starts playing as normal
https://cdn.discordapp.com/attachments/1102133845341507594/1137087094284632254/2023-08-05_01-02-15.mp4
Additional Server Info
Plugins:
Checklist
The text was updated successfully, but these errors were encountered: