From bcd772bbed70ef8d821942b95c7ff70f70a097fb Mon Sep 17 00:00:00 2001 From: HackDev <80620538+Hackx2@users.noreply.github.com> Date: Wed, 10 Apr 2024 13:26:30 +0100 Subject: [PATCH] Update PlayState.hx --- source/game/states/PlayState.hx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/game/states/PlayState.hx b/source/game/states/PlayState.hx index 6187c6f..db5a973 100644 --- a/source/game/states/PlayState.hx +++ b/source/game/states/PlayState.hx @@ -2597,11 +2597,10 @@ class PlayState extends MusicBeatState previousFrameTime = FlxG.game.ticks; lastReportedPlayheadPosition = 0; - @:privateAccess - FlxG.sound.playMusic(inst._sound, 1, false); - #if FLX_PITCH FlxG.sound.music.pitch = playbackRate; #end + FlxG.sound.playMusic(backend.utils.Paths.inst(PlayState.SONG.song), 1, false); + FlxG.sound.music.pitch = playbackRate; FlxG.sound.music.onComplete = finishSong.bind(); - vocals.play(); + vocals.play(); if(startOnTime > 0)