cheapie 2920b4c71e
Allow disabling steel->iron overrides (#382)
Co-authored-by: cheapie <no-email-for-you@example.com>
2024-09-27 21:20:18 -04:00

17 lines
400 B
Lua

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",
enable_steel_override = "true",
}
for k, v in pairs(defaults) do
if conf_table[k] == nil then
technic.config:set(k, v)
end
end