From ea925e04c77b69c6911b9f6d096396d0dcdacb8a Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Tue, 25 Aug 2026 22:59:29 +0200 Subject: [PATCH] Avoid redundant nameplate alpha writes --- mods/nameplate-scale.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/nameplate-scale.lua b/mods/nameplate-scale.lua index bf13d57..cfb7ce7 100644 --- a/mods/nameplate-scale.lua +++ b/mods/nameplate-scale.lua @@ -48,6 +48,10 @@ module.enable = function(self) end) table.insert(ShaguTweaks.libnameplate.OnUpdate, function() - this.new:SetAlpha(this:GetAlpha()) + local alpha = this:GetAlpha() + if this.new.ShaguTweaksAlpha ~= alpha then + this.new.ShaguTweaksAlpha = alpha + this.new:SetAlpha(alpha) + end end) end