From 8aa202305736f904e48f37de4f6b5ff0eaeb0697 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Sat, 9 Aug 2025 15:43:04 +0700 Subject: [PATCH] cancellable onSongEnd --- source/funkin/game/PlayState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 9e36b860..69e6bc99 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1691,8 +1691,8 @@ class PlayState extends MusicBeatState */ public function endSong():Void { + if (gameAndCharsEvent("onSongEnd", new CancellableEvent()).cancelled) return; endingSong = true; - gameAndCharsCall("onSongEnd"); canPause = false; for (strumLine in strumLines.members) strumLine.vocals.stop();