From 649c75afff212d54dd473949aa9f0f9f6b15adff Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Tue, 15 Nov 2022 20:09:35 +0100 Subject: [PATCH] fix status icon priorizing doesn't work --- PlayerTags/Features/NameplateTagTargetFeature.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PlayerTags/Features/NameplateTagTargetFeature.cs b/PlayerTags/Features/NameplateTagTargetFeature.cs index 2970a8c..044d0ac 100644 --- a/PlayerTags/Features/NameplateTagTargetFeature.cs +++ b/PlayerTags/Features/NameplateTagTargetFeature.cs @@ -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