blob: 4ac748cd3ba85852057a542a8c3ab9e7bfa3b8e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
technic.config = technic.config or Settings(minetest.get_worldpath().."/technic.conf")
local conf_table = technic.config:to_table()
local defaults = {
enable_granite_generation = "true",
enable_marble_generation = "true",
enable_rubber_tree_generation = "true",
}
for k, v in pairs(defaults) do
if conf_table[k] == nil then
technic.config:set(k, v)
end
end
|