core: use numeric client version check

This commit is contained in:
shagu
2018-09-30 13:46:19 +02:00
parent 8391db6aca
commit 4924424c7e
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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!")
+3
View File
@@ -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)})