mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 07:13:45 +01:00
Fix modlib.minetest.media
This commit is contained in:
parent
4d9b7ca0aa
commit
1d7e893f13
@ -24,7 +24,7 @@ local function collect_media(modname)
|
||||
local function traverse(folder)
|
||||
local filenames = minetest.get_dir_list(folder, false)
|
||||
for _, filename in pairs(filenames) do
|
||||
local _, ext = modlib.file.splitext(filename)
|
||||
local _, ext = modlib.file.split_extension(filename)
|
||||
if media_extensions[ext] then
|
||||
media[filename] = folder .. "/" .. filename
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user