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") extend(modname, "main")
end end
--! deprecated
function extend_string(modname, string) function extend_string(modname, string)
if not string then if not string then
string = modname string = modname
modname = minetest.get_current_modname() modname = minetest.get_current_modname()
end end
include_env(string, _G[modname], true) include_env(string, rawget(_G, modname), true)
end end
function configuration(modname) function configuration(modname)