libs: don't rely on sane global environment

some addons like to provide a broken _G variable to
the global environment breaking every other addon that
relies on it if existing. With this commit, make ShaguTweaks
no longer re-use the global _G, even if existing.
This commit is contained in:
shagu
2022-11-19 17:40:51 +01:00
parent 6c26bc6190
commit 44c7297a4a
8 changed files with 8 additions and 15 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
local _G = _G or getfenv(0)
local _G = ShaguTweaks.GetGlobalEnv()
local libtipscan = {}
local baseName = "ShaguTweaksTooltip"
local methods = {