diff --git a/pfUI.lua b/pfUI.lua index 44f659b1..4628ec60 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -166,6 +166,7 @@ function pfUI:GetEnvironment() end function pfUI:RegisterModule(n, f) + if pfUI.module[n] then return end pfUI.module[n] = f table.insert(pfUI.modules, n) if not pfUI.bootup then @@ -174,6 +175,7 @@ function pfUI:RegisterModule(n, f) end function pfUI:RegisterSkin(n, f) + if pfUI.skin[n] then return end pfUI.skin[n] = f table.insert(pfUI.skins, n) if not pfUI.bootup then