From 4764a354397cb7849361177d4f40cbcb774837a0 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Tue, 15 Nov 2022 20:01:27 +0100 Subject: [PATCH] fix status icon is visible if tag is not --- PlayerTags/Features/NameplateTagTargetFeature.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlayerTags/Features/NameplateTagTargetFeature.cs b/PlayerTags/Features/NameplateTagTargetFeature.cs index e2a185d..2970a8c 100644 --- a/PlayerTags/Features/NameplateTagTargetFeature.cs +++ b/PlayerTags/Features/NameplateTagTargetFeature.cs @@ -241,7 +241,7 @@ namespace PlayerTags.Features if (payloads.Any()) AddPayloadChanges(tag.TagTargetInNameplates.InheritedValue.Value, tag.TagPositionInNameplates.InheritedValue.Value, payloads, nameplateChanges, false); } - if (newStatusIcon == null && classJob != null && (tag.IsJobIconVisibleInNameplates?.InheritedValue ?? false)) + if (IsTagVisible(tag, gameObject) && newStatusIcon == null && classJob != null && (tag.IsJobIconVisibleInNameplates?.InheritedValue ?? false)) newStatusIcon = jobIconSets.GetJobIcon(tag.JobIconSet?.InheritedValue ?? JobIconSetName.Framed, classJob.Id); } }