2014-07-26 19:03:07 +01:00
|
|
|
technic.config = technic.config or Settings(minetest.get_worldpath().."/technic.conf")
|
2013-07-17 15:34:35 -04:00
|
|
|
|
|
|
|
local conf_table = technic.config:to_table()
|
|
|
|
|
|
|
|
local defaults = {
|
2013-06-30 07:12:02 +02:00
|
|
|
enable_mining_drill = "true",
|
|
|
|
enable_mining_laser = "true",
|
2013-10-18 22:22:39 -04:00
|
|
|
enable_flashlight = "false",
|
2013-10-06 12:41:48 -04:00
|
|
|
enable_wind_mill = "false",
|
2014-07-23 22:13:45 +01:00
|
|
|
enable_corium_griefing = "true",
|
2013-06-30 07:12:02 +02:00
|
|
|
}
|
|
|
|
|
2013-07-17 15:34:35 -04:00
|
|
|
for k, v in pairs(defaults) do
|
|
|
|
if conf_table[k] == nil then
|
|
|
|
technic.config:set(k, v)
|
2013-06-30 07:12:02 +02:00
|
|
|
end
|
|
|
|
end
|