-
-local worldpath = minetest.get_worldpath()
-
-technic.config = Settings(worldpath.."/technic.conf")
+technic.config = technic.config or Settings(minetest.get_worldpath().."/technic.conf")
local conf_table = technic.config:to_table()
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",
enable_corium_griefing = "true",
}
technic.config:set(k, v)
end
end
-
-- namespace: technic
-- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl>
-technic = {}
+technic = technic or {}
local load_start = os.clock()
local modpath = minetest.get_modpath("technic")
--- /dev/null
+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
default
-technic
intllib?
mg?
local modpath = minetest.get_modpath("technic_worldgen")
+technic = technic or {}
technic.worldgen = {}
if intllib then
technic.worldgen.gettext = intllib.Getter()
technic.worldgen.gettext = function(s) return s end
end
+dofile(modpath.."/config.lua")
dofile(modpath.."/nodes.lua")
dofile(modpath.."/oregen.lua")
dofile(modpath.."/crafts.lua")