mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +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")
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user