From c3d3386c0e38fb0915e785f0bed82be78024c58f Mon Sep 17 00:00:00 2001 From: Eric Mauser Date: Fri, 20 May 2016 09:48:24 +0200 Subject: [PATCH] modules should never be loaded twice --- pfUI.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pfUI.lua b/pfUI.lua index 2e263737..60978b31 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -18,8 +18,10 @@ pfUI:SetScript("OnEvent", function() if arg1 == "pfUI" then pfUI:Debug("pfUI module loader:") for i,m in pairs(this.modules) do - pfUI:Debug("=> " .. m) - pfUI.module[m]() + if not pfUI[m] then + pfUI.module[m]() + pfUI:Debug("=> " .. m) + end end end end)