diff options
Diffstat (limited to 'technic/config.lua')
-rw-r--r-- | technic/config.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/technic/config.lua b/technic/config.lua new file mode 100644 index 0000000..81a2224 --- /dev/null +++ b/technic/config.lua @@ -0,0 +1,18 @@ +technic.config = technic.config or Settings(minetest.get_worldpath().."/technic.conf") + +local conf_table = technic.config:to_table() + +local defaults = { + enable_mining_drill = "true", + enable_mining_laser = "true", + enable_flashlight = "false", + enable_wind_mill = "false", + enable_frames = "false", + enable_corium_griefing = "true", +} + +for k, v in pairs(defaults) do + if conf_table[k] == nil then + technic.config:set(k, v) + end +end |