mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
core: use numeric client version check
This commit is contained in:
+1
-1
@@ -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!")
|
message("TBC compat module loaded. Good Luck!")
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ pfUI.version = {}
|
|||||||
pfUI.hooks = {}
|
pfUI.hooks = {}
|
||||||
pfUI.env = {}
|
pfUI.env = {}
|
||||||
|
|
||||||
|
local _, _, _, client = GetBuildInfo()
|
||||||
|
pfUI.client = client or 11200
|
||||||
|
|
||||||
-- setup pfUI namespace
|
-- setup pfUI namespace
|
||||||
setmetatable(pfUI.env, {__index = getfenv(0)})
|
setmetatable(pfUI.env, {__index = getfenv(0)})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user