core: make sure to avoid loading modules twice

This commit is contained in:
shagu
2018-09-29 01:09:29 +02:00
parent f624ebf932
commit 6a7a513c88
+2
View File
@@ -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