From 888b0ebfec8c2eff9015163549a7e47443cb8665 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 21:00:20 -0400 Subject: "explode" all modpacks into their individual components (you can't have a modpack buried inside a modpack) --- technic/config.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 technic/config.lua (limited to 'technic/config.lua') 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 -- cgit v1.2.3