1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

now using getVariationsByCharId instead

This commit is contained in:
AppleHair 2024-06-12 11:23:45 +03:00 committed by GitHub
parent 9fa603363c
commit c4d6e18885
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1892,7 +1892,7 @@ class FreeplayState extends MusicBeatSubState
{
var previewSong:Null<Song> = SongRegistry.instance.fetchEntry(daSongCapsule.songData.songId);
var instSuffix:String = previewSong?.getDifficulty(currentDifficulty,
previewSong?.variations ?? Constants.DEFAULT_VARIATION_LIST)?.characters?.instrumental ?? '';
previewSong?.getVariationsByCharId(currentCharacter) ?? Constants.DEFAULT_VARIATION_LIST)?.characters?.instrumental ?? '';
instSuffix = (instSuffix != '') ? '-$instSuffix' : '';
FunkinSound.playMusic(daSongCapsule.songData.songId,
{