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