ShadowNinja
2013-10-03 562d0db20c5604a15515ca55eee4db6142d03e31
commit | author | age
8e03d7 1
ee0765 2 local worldpath = minetest.get_worldpath()
8e03d7 3
ee0765 4 technic.config = Settings(worldpath.."/technic.conf")
S 5
6 local conf_table = technic.config:to_table()
7
8 local defaults = {
8e03d7 9     enable_mining_drill = "true",
R 10     enable_mining_laser = "true",
11     enable_flashlight = "true",
12     enable_rubber_tree_generation = "true",
13     enable_marble_generation = "true",
ee0765 14     enable_granite_generation = "true",
8e03d7 15 }
R 16
ee0765 17 for k, v in pairs(defaults) do
S 18     if conf_table[k] == nil then
19         technic.config:set(k, v)
8e03d7 20     end
R 21 end
22