Fix modlib.minetest.media

This commit is contained in:
Lars Mueller 2021-09-01 17:07:54 +02:00
parent 4d9b7ca0aa
commit 1d7e893f13

@ -24,7 +24,7 @@ local function collect_media(modname)
local function traverse(folder) local function traverse(folder)
local filenames = minetest.get_dir_list(folder, false) local filenames = minetest.get_dir_list(folder, false)
for _, filename in pairs(filenames) do for _, filename in pairs(filenames) do
local _, ext = modlib.file.splitext(filename) local _, ext = modlib.file.split_extension(filename)
if media_extensions[ext] then if media_extensions[ext] then
media[filename] = folder .. "/" .. filename media[filename] = folder .. "/" .. filename
end end