Skip to content

Commit

Permalink
回滚了一组看起来很像BUG的奇怪的判断逻辑以修复BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
sheep-realms committed Dec 24, 2023
1 parent c405898 commit 50d30a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion res/script/live.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ echo.on('print', function(chr) {
$(`.echo-output span[data-group="${gruopIndex}"]`).append(chr);
}

if (config.echolive.print_audio_enable && (chr != '' || chr != undefined) && printSe) {
// 这里有一组奇怪的判断?别动,动了就出BUG,我也不知道当初怎么想的
if (config.echolive.print_audio_enable && (chr != '' || chr != '') && printSe) {
mixer.play(config.echolive.print_audio_name, config.echolive.print_audio_volume, config.echolive.print_audio_rate);
// 打印音效稳定器
printSe = false;
Expand Down

0 comments on commit 50d30a4

Please sign in to comment.