Resolved merge conflicts with master

This commit is contained in:
SkylarHew committed 2022-01-23 16:01:44 -07:00
commit 7cb200ab04
31 files changed
+1525 -291

No files matched your search

+8 -2
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