Completed checkbox_query and rewrite of change_modules module with checkboxes

This commit is contained in:
Nathan Schneider committed 2022-01-02 23:13:56 -07:00
1 parent 28a05c584c
commit 2989bd34bd
6 files changed
+195 -23

No files matched your search

+5 -1
View File
@@ -7,7 +7,11 @@ function modpol.util.copy_table(t)
local t2 = {}
if pairs(t) then
for k,v in pairs(t) do
t2[k] = v
if type(v) == "table" then
t2[k] = modpol.util.copy_table(v)
else
t2[k] = v
end
end
end
return t2