From 56fe278285839d60b5b961e48de7f9a3bf528047 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Wed, 14 Jan 2026 18:10:33 +0100 Subject: [PATCH] removed duplicate removed duplcate queue update on visual target update --- modules/nameplates.lua | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 57a5d6e2..ec2ccc02 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -1015,31 +1015,23 @@ pfUI:RegisterModule("nameplates", "vanilla", function () nameplate.istarget = target -- set non-target plate alpha (cached to prevent flicker) -local configAlpha = tonumber(C.nameplates.notargalpha) -if not configAlpha or configAlpha < 0 then - configAlpha = 100 -end + local configAlpha = tonumber(C.nameplates.notargalpha) + if not configAlpha or configAlpha < 0 then + configAlpha = 100 + end --- Ensure we're working with 0-1 range -if configAlpha > 1 then - configAlpha = configAlpha / 100 -end + -- Ensure we're working with 0-1 range + if configAlpha > 1 then + configAlpha = configAlpha / 100 + end -local desiredAlpha = (target or not UnitExists("target")) and 1 or configAlpha + local desiredAlpha = (target or not UnitExists("target")) and 1 or configAlpha -if nameplate.cachedAlpha ~= desiredAlpha then - -- Setze nur die nameplate Alpha, nicht den parent frame - nameplate:SetAlpha(desiredAlpha) - nameplate.cachedAlpha = desiredAlpha -end - --- Der newAlpha Block wurde entfernt - --- queue update on visual target update -if nameplate.cache.target ~= target then - nameplate.cache.target = target - update = true -end + if nameplate.cachedAlpha ~= desiredAlpha then + -- Setze nur die nameplate Alpha, nicht den parent frame + nameplate:SetAlpha(desiredAlpha) + nameplate.cachedAlpha = desiredAlpha + end -- queue update on visual target update if nameplate.cache.target ~= target then