technic-cd2025/technic/config.lua

23 lines
617 B
Lua
Raw Normal View History

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",
enable_flashlight = "false",
enable_wind_mill = "false",
enable_frames = "false",
2018-10-15 20:21:30 +02:00
enable_corium_griefing = "true",
enable_radiation_protection = "true",
2016-04-10 21:47:24 +03:00
enable_entity_radiation_damage = "true",
enable_longterm_radiation_damage = "true",
enable_nuclear_reactor_digiline_selfdestruct = "false",
}
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)
end
end