Fix mod.extend_string triggering a warning

This commit is contained in:
Lars Mueller 2021-02-01 16:23:11 +01:00
parent cfdf3cf67b
commit a81834fb66

@ -42,12 +42,13 @@ function init(modname)
extend(modname, "main")
end
--! deprecated
function extend_string(modname, string)
if not string then
string = modname
modname = minetest.get_current_modname()
end
include_env(string, _G[modname], true)
include_env(string, rawget(_G, modname), true)
end
function configuration(modname)