diff options
Diffstat (limited to 'builtin/mainmenu/tab_texturepacks.lua')
-rw-r--r-- | builtin/mainmenu/tab_texturepacks.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/builtin/mainmenu/tab_texturepacks.lua b/builtin/mainmenu/tab_texturepacks.lua index 97f96fb1b..db5ac3465 100644 --- a/builtin/mainmenu/tab_texturepacks.lua +++ b/builtin/mainmenu/tab_texturepacks.lua @@ -31,11 +31,13 @@ local function render_texture_pack_list(list) local retval = "" for i, v in ipairs(list) do - if retval ~= "" then - retval = retval .."," - end + if v:sub(1,1) ~= "." then + if retval ~= "" then + retval = retval .."," + end - retval = retval .. core.formspec_escape(v) + retval = retval .. core.formspec_escape(v) + end end return retval |