mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-30 23:30:35 +02:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@ -86,10 +86,9 @@ function pipeworks.table_contains(tbl, element)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function pipeworks.table_extend(tbl, tbl2)
|
function pipeworks.table_extend(tbl, tbl2)
|
||||||
local index = #tbl + 1
|
local oldlength = #tbl
|
||||||
for _, elt in ipairs(tbl2) do
|
for i = 1,#tbl2 do
|
||||||
tbl[index] = elt
|
tbl[oldlength + i] = tbl2[i]
|
||||||
index = index + 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user