This commit is contained in:
xen-42 2024-10-02 22:10:42 -04:00
parent 1444cc12db
commit 6a47777497
2 changed files with 8 additions and 0 deletions

View File

@ -96,6 +96,12 @@ namespace NewHorizons.Builder.Body
// We want to take the largest size I think
var realSize = body.Config.Base.surfaceSize;
if (realSize <= 0)
{
// #941 handle proxy body edge case when all scales = 0
realSize = 1;
}
if (body.Config.HeightMap != null)
{
HeightMapBuilder.Make(proxy, null, body.Config.HeightMap, body.Mod, 20);

View File

@ -58,6 +58,8 @@ namespace NewHorizons.External.Modules
/// <summary>
/// A scale height used for a number of things. Should be the approximate radius of the body.
///
/// Affected settings include: Base sector size, proxy body scaling, surface gravity
/// </summary>
public float surfaceSize;