1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-11-30 08:07:52 +00:00

Fix issue where Freeplay could be silent sometimes

This commit is contained in:
EliteMasterEric 2024-02-10 00:50:07 -05:00
parent 40603eaa06
commit 3ede16be16

View file

@ -164,9 +164,9 @@ class FreeplayState extends MusicBeatSubState
isDebug = true; isDebug = true;
#end #end
if (FlxG.sound.music != null) if (FlxG.sound.music == null || (FlxG.sound.music != null && !FlxG.sound.music.playing))
{ {
if (!FlxG.sound.music.playing) FlxG.sound.playMusic(Paths.music('freakyMenu/freakyMenu')); FlxG.sound.playMusic(Paths.music('freakyMenu/freakyMenu'));
} }
// Add a null entry that represents the RANDOM option // Add a null entry that represents the RANDOM option