mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 09:13:53 +01:00
Fix mod.extend_string triggering a warning
This commit is contained in:
parent
cfdf3cf67b
commit
a81834fb66
3
mod.lua
3
mod.lua
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user