core: 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 16:59:12 +01:00
parent 06006e36f9
commit 6c26bc6190
34 changed files with 57 additions and 34 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
local _G = _G or getfenv(0)
local _G = ShaguTweaks.GetGlobalEnv()
local module = ShaguTweaks:register({
title = "Unit Frame Class Colors",