Zefram
2014-08-17 d0efa15b983f7a0a96e1a7abcdad713715dfeeeb
commit | author | age
9f0b41 1 technic.config = technic.config or Settings(minetest.get_worldpath().."/technic.conf")
ee0765 2
S 3 local conf_table = technic.config:to_table()
4
5 local defaults = {
8e03d7 6     enable_mining_drill = "true",
R 7     enable_mining_laser = "true",
eac484 8     enable_flashlight = "false",
363f03 9     enable_wind_mill = "false",
c5e948 10     enable_corium_griefing = "true",
8e03d7 11 }
R 12
ee0765 13 for k, v in pairs(defaults) do
S 14     if conf_table[k] == nil then
15         technic.config:set(k, v)
8e03d7 16     end
R 17 end