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 = () => {