mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 13:40:00 +00:00
core: make sure to avoid loading modules twice
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user