Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Sys Quatre 2020-10-18 02:13:58 +02:00
commit 946da11206
2 changed files with 4 additions and 5 deletions

View File

@ -86,10 +86,9 @@ function pipeworks.table_contains(tbl, element)
end
function pipeworks.table_extend(tbl, tbl2)
local index = #tbl + 1
for _, elt in ipairs(tbl2) do
tbl[index] = elt
index = index + 1
local oldlength = #tbl
for i = 1,#tbl2 do
tbl[oldlength + i] = tbl2[i]
end
end

View File

@ -150,4 +150,4 @@ end
minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
print("Pipeworks loaded!")
minetest.log("info", "Pipeworks loaded!")