mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Keep empty servers at bottom of list (#14511)
This commit is contained in:
parent
fd8e02195e
commit
4e1679d2a2
2 changed files with 29 additions and 11 deletions
|
@ -490,6 +490,9 @@ end
|
|||
|
||||
|
||||
function table.insert_all(t, other)
|
||||
if table.move then -- LuaJIT
|
||||
return table.move(other, 1, #other, #t + 1, t)
|
||||
end
|
||||
for i=1, #other do
|
||||
t[#t + 1] = other[i]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue