Skip to content

Commit

Permalink
Icon Code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLikesKirby committed May 22, 2024
1 parent d13e052 commit a276db4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/HealthIcon.hx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class HealthIcon extends FlxSprite
{
if (this.char != char)
{
if (char != "none")
if (char != "none") {
if (FileSystem.exists('assets/images/ui/iconGrid/' + char + '.png')) {
loadGraphic(FlxGraphic.fromBitmapData(BitmapData.fromFile(Paths.image('ui/iconGrid/' + char, 'preload'))), true, 150, 150);
} else if (FileSystem.exists('mods/global characters/icons/' + char + '.png')) {
Expand All @@ -47,8 +47,9 @@ class HealthIcon extends FlxSprite
} else {
loadGraphic(Paths.image('blank', 'shared'));
}
else
} else {
loadGraphic(Paths.image('blank', 'shared'));
}

if (char != "none")
{
Expand Down

0 comments on commit a276db4

Please sign in to comment.