Merge pull request from FunkinCrew/bugfix/blazin-crashes

Fix crashes tied to Blazin' character animations not parsing
This commit is contained in:
Cameron Taylor 2024-03-26 01:31:19 -04:00 committed by GitHub
commit 99ea7bbe84
2 changed files with 11 additions and 4 deletions
assets
source/funkin/play/character

2
assets

@ -1 +1 @@
Subproject commit 366aab68406311782e1c1c7a5e9de0a224ccf6fd
Subproject commit 5f1726f1b0c11fc747b7473708cf4e5f28be05f1

View file

@ -76,10 +76,17 @@ class AnimateAtlasCharacter extends BaseCharacter
{
trace('Creating Animate Atlas character: ' + this.characterId);
var atlasSprite:FlxAtlasSprite = loadAtlasSprite();
setSprite(atlasSprite);
try
{
var atlasSprite:FlxAtlasSprite = loadAtlasSprite();
setSprite(atlasSprite);
loadAnimations();
loadAnimations();
}
catch (e)
{
throw "Exception thrown while building FlxAtlasSprite: " + e;
}
super.onCreate(event);
}