fix status icon priorizing doesn't work

This commit is contained in:
2022-11-15 20:09:35 +01:00
parent 4764a35439
commit 649c75afff

View File

@@ -250,7 +250,8 @@ namespace PlayerTags.Features
if (newStatusIcon != null)
{
var change = nameplateChanges.GetChange(NameplateElements.Name, StringPosition.Before);
NameplateUpdateFactory.ApplyStatusIconWithPrio(ref statusIcon, (int)newStatusIcon, change, ActivityContextManager.CurrentActivityContext, statusiconPriorizer);
if (NameplateUpdateFactory.ApplyStatusIconWithPrio(ref statusIcon, (int)newStatusIcon, change, ActivityContextManager.CurrentActivityContext, statusiconPriorizer))
statusIcon = (int)newStatusIcon;
}
// Build the final strings out of the payloads