summaryrefslogtreecommitdiff
path: root/technic_worldgen/config.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-07-30 15:36:27 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-07-30 15:36:27 -0400
commit88bdac62e3f36c1125c82b44e2bc6fd718e05322 (patch)
treeebccbef615c51104a6cbca2d3ab957a29445a4ae /technic_worldgen/config.lua
parent12d0c6522bbca906910aae0321cbaa7eb48db8c2 (diff)
parent60bc80692ba51ad0a7f2391803ee454b18cb7174 (diff)
Merge remote-tracking branch 'zefram/zefram/centrifuge'
Diffstat (limited to 'technic_worldgen/config.lua')
-rw-r--r--technic_worldgen/config.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/technic_worldgen/config.lua b/technic_worldgen/config.lua
new file mode 100644
index 0000000..4ac748c
--- /dev/null
+++ b/technic_worldgen/config.lua
@@ -0,0 +1,15 @@
+technic.config = technic.config or Settings(minetest.get_worldpath().."/technic.conf")
+
+local conf_table = technic.config:to_table()
+
+local defaults = {
+ enable_granite_generation = "true",
+ enable_marble_generation = "true",
+ enable_rubber_tree_generation = "true",
+}
+
+for k, v in pairs(defaults) do
+ if conf_table[k] == nil then
+ technic.config:set(k, v)
+ end
+end