Avoid redundant nameplate alpha writes

This commit is contained in:
2026-08-25 22:59:29 +02:00
parent dd7612d8b5
commit ea925e04c7
+5 -1
View File
@@ -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