2014-07-26 20:03:07 +02:00
|
|
|
technic.config = technic.config or Settings(minetest.get_worldpath().."/technic.conf")
|
2013-07-17 21:34:35 +02: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-19 04:22:39 +02:00
|
|
|
enable_flashlight = "false",
|
2013-10-06 18:41:48 +02:00
|
|
|
enable_wind_mill = "false",
|
2015-03-16 23:40:26 +01:00
|
|
|
enable_frames = "false",
|
2014-07-23 23:13:45 +02:00
|
|
|
enable_corium_griefing = "true",
|
2016-04-10 20:55:37 +02:00
|
|
|
enable_radiation_protection = "true",
|
2016-04-10 20:47:24 +02:00
|
|
|
enable_entity_radiation_damage = "true",
|
|
|
|
enable_longterm_radiation_damage = "true",
|
2017-06-05 17:02:05 +02:00
|
|
|
enable_nuclear_reactor_digiline_selfdestruct = "false",
|
2013-06-30 07:12:02 +02:00
|
|
|
}
|
|
|
|
|
2013-07-17 21:34:35 +02: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
|