1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Keep empty servers at bottom of list (#14511)

This commit is contained in:
sfan5
2024-04-05 13:00:34 +02:00
committed by GitHub
parent fd8e02195e
commit 4e1679d2a2
2 changed files with 29 additions and 11 deletions

View File

@@ -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