Alphabetical sorting of texture packs in menu (fixes #3487)
This commit is contained in:
parent
93de351e5f
commit
eadd017507
|
@ -17,12 +17,16 @@
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
local function filter_texture_pack_list(list)
|
local function filter_texture_pack_list(list)
|
||||||
local retval = {fgettext("None")}
|
local retval = {}
|
||||||
for _, item in ipairs(list) do
|
for _, item in ipairs(list) do
|
||||||
if item ~= "base" then
|
if item ~= "base" then
|
||||||
table.insert(retval, item)
|
table.insert(retval, item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
table.sort(retval)
|
||||||
|
table.insert(retval, 1, fgettext("None"))
|
||||||
|
|
||||||
return retval
|
return retval
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue