mirror of
https://github.com/mt-mods/basic_materials.git
synced 2024-11-22 06:03:42 +01:00
improve warnin message
This commit is contained in:
parent
7dfea8748a
commit
19c690d7e9
@ -7,7 +7,14 @@ if not sound_api then
|
|||||||
local metatable = {
|
local metatable = {
|
||||||
__index = function(_, _)
|
__index = function(_, _)
|
||||||
return function(input)
|
return function(input)
|
||||||
minetest.log("warning", "[basic_materials]: sounds not found")
|
minetest.log(
|
||||||
|
"warning",
|
||||||
|
"[basic_materials]: " ..
|
||||||
|
"The sound api submodule for game agnostic sound loading could not be found at " ..
|
||||||
|
basic_materials.modpath .. "/sound_api_core. " ..
|
||||||
|
"documentation for using submodules can be found at https://git-scm.com/docs/git-submodule." ..
|
||||||
|
"defaulting back to mod provided input or nil."
|
||||||
|
)
|
||||||
if input then return input else return nil end
|
if input then return input else return nil end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user