mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 16:53:46 +01:00
Fix conf loading
This commit is contained in:
parent
de3f79d5b1
commit
f39596efb6
2
mod.lua
2
mod.lua
@ -82,7 +82,7 @@ function configuration(modname)
|
|||||||
check_type(value)
|
check_type(value)
|
||||||
return value
|
return value
|
||||||
end},
|
end},
|
||||||
{extension = "conf", read = function(text) return Settings(text):to_table() end, convert_strings = true},
|
{extension = "conf", read = function(text) return modlib.conf.build_setting_tree(Settings(text):to_table()) end, convert_strings = true},
|
||||||
{extension = "json", read = minetest.parse_json}
|
{extension = "json", read = minetest.parse_json}
|
||||||
} do
|
} do
|
||||||
local content = modlib.file.read(path .. "." .. format.extension)
|
local content = modlib.file.read(path .. "." .. format.extension)
|
||||||
|
Loading…
Reference in New Issue
Block a user