From 19c690d7e92b0b957f8e33280d741413d758fcf6 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sun, 6 Feb 2022 11:59:31 -0500 Subject: [PATCH] improve warnin message --- nodes.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nodes.lua b/nodes.lua index f8e0591..752a081 100644 --- a/nodes.lua +++ b/nodes.lua @@ -7,7 +7,14 @@ if not sound_api then local metatable = { __index = function(_, _) 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 end end,