From 636b0f20df4fef3eef821c23ccc2f606828f5c6f Mon Sep 17 00:00:00 2001
From: Zefram <zefram@fysh.org>
Date: Mon, 07 Jul 2014 15:15:05 +0200
Subject: [PATCH] Handheld prospecting tool

---
 technic/config.lua |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/technic/config.lua b/technic/config.lua
new file mode 100644
index 0000000..525c79f
--- /dev/null
+++ b/technic/config.lua
@@ -0,0 +1,23 @@
+
+local worldpath = minetest.get_worldpath()
+
+technic.config = Settings(worldpath.."/technic.conf")
+
+local conf_table = technic.config:to_table()
+
+local defaults = {
+	enable_mining_drill = "true",
+	enable_mining_laser = "true",
+	enable_flashlight = "false",
+	enable_rubber_tree_generation = "true",
+	enable_marble_generation = "true",
+	enable_granite_generation = "true",
+	enable_wind_mill = "false",
+}
+
+for k, v in pairs(defaults) do
+	if conf_table[k] == nil then
+		technic.config:set(k, v)
+	end
+end
+

--
Gitblit v1.8.0