Resolved merge conflicts with master

This commit is contained in:
SkylarHew
2022-01-23 16:01:44 -07:00
31 changed files with 1525 additions and 291 deletions

View File

@ -9,8 +9,14 @@ modpol.util = {}
-- @return copy of table
function modpol.util.copy_table(t)
local t2 = {}
for k,v in pairs(t) do
t2[k] = v
if pairs(t) then
for k,v in pairs(t) do
if type(v) == "table" then
t2[k] = modpol.util.copy_table(v)
else
t2[k] = v
end
end
end
return t2
end