Skip to content

Commit 8aa2023

Browse files
committed
cancellable onSongEnd
1 parent d979b5c commit 8aa2023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/funkin/game/PlayState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,8 +1691,8 @@ class PlayState extends MusicBeatState
16911691
*/
16921692
public function endSong():Void
16931693
{
1694+
if (gameAndCharsEvent("onSongEnd", new CancellableEvent()).cancelled) return;
16941695
endingSong = true;
1695-
gameAndCharsCall("onSongEnd");
16961696
canPause = false;
16971697

16981698
for (strumLine in strumLines.members) strumLine.vocals.stop();

0 commit comments

Comments
 (0)