Zefram
2014-07-30 12d0c6522bbca906910aae0321cbaa7eb48db8c2
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",
eac484 11     enable_flashlight = "false",
8e03d7 12     enable_rubber_tree_generation = "true",
R 13     enable_marble_generation = "true",
ee0765 14     enable_granite_generation = "true",
363f03 15     enable_wind_mill = "false",
c5e948 16     enable_corium_griefing = "true",
8e03d7 17 }
R 18
ee0765 19 for k, v in pairs(defaults) do
S 20     if conf_table[k] == nil then
21         technic.config:set(k, v)
8e03d7 22     end
R 23 end
24