You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
367B

  1. technic.config = technic.config or Settings(minetest.get_worldpath().."/technic.conf")
  2. local conf_table = technic.config:to_table()
  3. local defaults = {
  4. enable_granite_generation = "true",
  5. enable_marble_generation = "true",
  6. enable_rubber_tree_generation = "true",
  7. }
  8. for k, v in pairs(defaults) do
  9. if conf_table[k] == nil then
  10. technic.config:set(k, v)
  11. end
  12. end