1
0
Fork 0
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:
SmallJoker 2014-12-07 11:14:52 +01:00 committed by Craig Robbins
parent c5f6f9f77a
commit 5229a229a6
3 changed files with 76 additions and 81 deletions

View file

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