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 = {
|
2018-10-15 20:23:11 +02:00
|
|
|
enable_mining_drill = "true",
|
2018-08-28 12:06:29 +02:00
|
|
|
enable_mining_laser = "false",
|
2013-10-18 22:22:39 -04:00
|
|
|
enable_flashlight = "false",
|
2013-10-06 12:41:48 -04:00
|
|
|
enable_wind_mill = "false",
|
2015-03-16 23:40:26 +01:00
|
|
|
enable_frames = "false",
|
2018-10-15 20:21:30 +02:00
|
|
|
enable_corium_griefing = "true",
|
2016-04-10 21:55:37 +03:00
|
|
|
enable_radiation_protection = "true",
|
2016-04-10 21:47:24 +03: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 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
|