mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 07:38:48 -05:00
Alphabetical sorting of texture packs in menu (fixes #3487)
This commit is contained in:
parent
e834e83ed8
commit
382ab969d4
@ -17,12 +17,16 @@
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
local function filter_texture_pack_list(list)
|
||||
local retval = {fgettext("None")}
|
||||
local retval = {}
|
||||
for _, item in ipairs(list) do
|
||||
if item ~= "base" then
|
||||
table.insert(retval, item)
|
||||
end
|
||||
end
|
||||
|
||||
table.sort(retval)
|
||||
table.insert(retval, 1, fgettext("None"))
|
||||
|
||||
return retval
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user