Emon
2016-05-18 413d20d6c83a218c63fcb4fbf840010d1d380f86
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",
137695 10     enable_frames = "false",
c5e948 11     enable_corium_griefing = "true",
8e03d7 12 }
R 13
ee0765 14 for k, v in pairs(defaults) do
S 15     if conf_table[k] == nil then
16         technic.config:set(k, v)
8e03d7 17     end
R 18 end