From 53e262dbd5826d96fda6ce914e4909bb40d44f27 Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Mon, 27 Jan 2025 21:03:12 +0800 Subject: [PATCH] .. --- project/events.js | 3 --- project/plugins.js | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/project/events.js b/project/events.js index 2ec5259..5c6c1a0 100644 --- a/project/events.js +++ b/project/events.js @@ -3282,9 +3282,6 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 = } ] }, - { - "type": "pauseBgm" - }, { "type": "playBgm", "name": "Halbmond.opus" diff --git a/project/plugins.js b/project/plugins.js index 2acff39..e8418e9 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -10713,7 +10713,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = }; //bgm相关复写 control.prototype.playBgm = (bgm, when) => { - bgmController.play(bgm, when); + if (!bgm || core.bgms.includes(bgm)) + bgmController.play(bgm, when); core.setMusicBtn(); }; control.prototype.pauseBgm = () => {