From 4924424c7efd9794bf8e4c6569d5042e6a516352 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 30 Sep 2018 13:46:19 +0200 Subject: [PATCH] core: use numeric client version check --- api/tbc.lua | 2 +- pfUI.lua | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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)})