add an override setting for rail tunnel heights

This commit is contained in:
FaceDeer 2022-08-07 18:00:26 -06:00
parent ae60960a00
commit eef5c0dc46
1 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,10 @@ local get_local_settings = function()
height_min = mcl_mapgen.overworld.bedrock_max + 2
end
height_max = mcl_worlds.layer_to_y(60)
-- Allow mods to separately override this
height_min = mcl_mapgen.overworld.railcorridors_height_min or height_min
height_max = mcl_mapgen.overworld.railcorridors_height_max or height_max
end
get_local_settings()
mcl_mapgen.register_on_settings_changed(get_local_settings)