1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-12-09 21:48:39 +00:00

Fix an issue where the default results animation (BF) wouldn't show up if the character ID wasn't associated

This commit is contained in:
AbnormalPoof 2025-11-23 04:08:07 -06:00 committed by Hundrec
parent efafb1acea
commit f1eb67bf52

View file

@ -191,8 +191,8 @@ class ResultState extends MusicBeatSubState
add(soundSystem);
// Fetch playable character data. Default to BF on the results screen if we can't find it.
playerCharacterId = PlayerRegistry.instance.getCharacterOwnerId(params.characterId) ?? params.characterId;
playerCharacter = PlayerRegistry.instance.fetchEntry(playerCharacterId ?? 'bf');
playerCharacterId = PlayerRegistry.instance.getCharacterOwnerId(params.characterId) ?? 'bf';
playerCharacter = PlayerRegistry.instance.fetchEntry(playerCharacterId);
trace('Got playable character: ${playerCharacter?.getName()}');
// Query JSON data based on the rank, then use that to build the animation(s) the player sees.