From 33a250ca154594f528238f7847cc59a2b7775915 Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 27 Sep 2024 13:32:24 -0500 Subject: [PATCH] Allow disabling steel->iron overrides --- technic_worldgen/config.lua | 1 + technic_worldgen/init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/technic_worldgen/config.lua b/technic_worldgen/config.lua index 4ac748cd..6f8fbd83 100644 --- a/technic_worldgen/config.lua +++ b/technic_worldgen/config.lua @@ -6,6 +6,7 @@ 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 diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua index 4f06f84c..bbe90602 100644 --- a/technic_worldgen/init.lua +++ b/technic_worldgen/init.lua @@ -15,7 +15,7 @@ dofile(modpath.."/config.lua") dofile(modpath.."/nodes.lua") dofile(modpath.."/oregen.lua") dofile(modpath.."/crafts.lua") -if minetest.get_modpath("default") then +if minetest.get_modpath("default") and technic.config:get_bool("enable_steel_override") then dofile(modpath.."/overrides.lua") end