mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-25 00:56:02 +00:00
remove pfUI.cache as it was only required once
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ pfUI:RegisterModule("player", function ()
|
||||
local hp, hpmax = UnitHealth("player"), UnitHealthMax("player")
|
||||
local power, powermax = UnitMana("player"), UnitManaMax("player")
|
||||
|
||||
local cr, cg, cb = pfUI.cache.class_r, pfUI.cache.class_g, pfUI.cache.class_b
|
||||
local cr, cg, cb = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5
|
||||
local perc = hp / hpmax
|
||||
|
||||
pfUI.uf.player.hp.bar:SetMinMaxValues(0, hpmax)
|
||||
|
||||
Reference in New Issue
Block a user