Skip to content

Commit

Permalink
try fix status icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed Nov 3, 2024
1 parent 80de587 commit 8fda718
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Client/Vampire/VampireSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public override void Initialize()
}

private void GetVampireIcon(Entity<VampireComponent> ent, ref GetStatusIconsEvent args)
{
var iconPrototype = _prototype.Index(ent.Comp.StatusIcon);
args.StatusIcons.Add(iconPrototype);
{
if (HasComp<VampireComponent>(ent) && _prototype.TryIndex(ent.Comp.StatusIcon, out var iconPrototype))
args.StatusIcons.Add(iconPrototype);
}
}

0 comments on commit 8fda718

Please sign in to comment.