mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
remove temp folder structure
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
--Cache global variables
|
||||
local setmetatable, getmetatable = setmetatable, getmetatable
|
||||
local pairs, type = pairs, type
|
||||
local table = table
|
||||
|
||||
function table.copy(t, deep, seen)
|
||||
seen = seen or {}
|
||||
if t == nil then return nil end
|
||||
if seen[t] then return seen[t] end
|
||||
|
||||
local nt = {}
|
||||
for k, v in pairs(t) do
|
||||
if deep and type(v) == "table" then
|
||||
nt[k] = table.copy(v, deep, seen)
|
||||
else
|
||||
nt[k] = v
|
||||
end
|
||||
end
|
||||
setmetatable(nt, table.copy(getmetatable(t), deep, seen))
|
||||
seen[t] = nt
|
||||
return nt
|
||||
end
|
||||
Reference in New Issue
Block a user