mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Ignore .name directories and files
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
This commit is contained in:
parent
c5f6f9f77a
commit
5229a229a6
3 changed files with 76 additions and 81 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue