Bugfix on copy_table and added refresh command to CLI
This commit is contained in:
@ -5,11 +5,7 @@ modpol.util = {}
|
||||
-- Returns a copy of the table inputted
|
||||
function modpol.util.copy_table(t)
|
||||
local t2 = {}
|
||||
if ipairs(t) then
|
||||
for i,v in ipairs(t) do
|
||||
t2[i] = v
|
||||
end
|
||||
elseif pairs(t) then
|
||||
if pairs(t) then
|
||||
for k,v in pairs(t) do
|
||||
t2[k] = v
|
||||
end
|
||||
|
Reference in New Issue
Block a user