Skip to content

Commit 604f88a

Browse files
committed
fix default value of object
1 parent e56735f commit 604f88a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build-settings.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ end
2828

2929
local function copyWithNLS(t, callback)
3030
local nt = {}
31+
local mt = getmetatable(t)
32+
if mt then
33+
setmetatable(nt, mt)
34+
end
3135
for k, v in pairs(t) do
3236
if type(v) == 'string' then
3337
v = callback(v) or v

0 commit comments

Comments
 (0)