diff --git a/api/tbc.lua b/api/tbc.lua index 8695873f..f901fefa 100644 --- a/api/tbc.lua +++ b/api/tbc.lua @@ -1,4 +1,4 @@ -if GetBuildInfo() ~= "2.4.3" then return end +if pfUI.client < 20000 then return end message("TBC compat module loaded. Good Luck!") diff --git a/pfUI.lua b/pfUI.lua index 4628ec60..f85a26e1 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -47,6 +47,9 @@ pfUI.version = {} pfUI.hooks = {} pfUI.env = {} +local _, _, _, client = GetBuildInfo() +pfUI.client = client or 11200 + -- setup pfUI namespace setmetatable(pfUI.env, {__index = getfenv(0)})