commit | author | age
|
8e03d7
|
1 |
|
ee0765
|
2 |
local worldpath = minetest.get_worldpath() |
8e03d7
|
3 |
|
ee0765
|
4 |
technic.config = Settings(worldpath.."/technic.conf") |
S |
5 |
|
|
6 |
local conf_table = technic.config:to_table() |
|
7 |
|
|
8 |
local defaults = { |
8e03d7
|
9 |
enable_mining_drill = "true", |
R |
10 |
enable_mining_laser = "true", |
|
11 |
enable_flashlight = "true", |
|
12 |
enable_item_drop = "true", |
|
13 |
enable_item_pickup = "true", |
|
14 |
enable_rubber_tree_generation = "true", |
|
15 |
enable_marble_generation = "true", |
ee0765
|
16 |
enable_granite_generation = "true", |
8e03d7
|
17 |
} |
R |
18 |
|
ee0765
|
19 |
for k, v in pairs(defaults) do |
S |
20 |
if conf_table[k] == nil then |
|
21 |
technic.config:set(k, v) |
8e03d7
|
22 |
end |
R |
23 |
end |
|
24 |
|