Update TitleSceneHandler.cs

This commit is contained in:
Nick 2023-01-22 15:07:07 -05:00
parent 72ac673bcb
commit 0cecf29799

View File

@ -83,7 +83,7 @@ namespace NewHorizons.Handlers
if (body.Config.HeightMap != null)
{
HeightMapBuilder.Make(titleScreenGO, null, body.Config.HeightMap, body.Mod, 30);
maxSize = body.Config.HeightMap.maxHeight;
maxSize = Mathf.Max(maxSize, body.Config.HeightMap.maxHeight, body.Config.HeightMap.minHeight);
}
if (body.Config.Atmosphere?.clouds?.texturePath != null && body.Config.Atmosphere?.clouds?.cloudsPrefab != CloudPrefabType.Transparent)
{