mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
John smart
This commit is contained in:
parent
184a2d4269
commit
5be88e7bfa
@ -76,13 +76,8 @@ namespace NewHorizons.Builder.Props
|
|||||||
float relativeHeight = heightMapTexture.GetPixel((int)sampleX, (int)sampleY).r;
|
float relativeHeight = heightMapTexture.GetPixel((int)sampleX, (int)sampleY).r;
|
||||||
height = (relativeHeight * (heightMap.maxHeight - heightMap.minHeight) + heightMap.minHeight);
|
height = (relativeHeight * (heightMap.maxHeight - heightMap.minHeight) + heightMap.minHeight);
|
||||||
|
|
||||||
if (config.Water != null && propInfo.minHeight == null && height < config.Water.size - 1f)
|
// By default don't put underwater more than a mater
|
||||||
{
|
if (config.Water != null && propInfo.minHeight == null) propInfo.minHeight = config.Water.size - 1f;
|
||||||
// Don't put underwater
|
|
||||||
// Silly 1 meter thing is for backwards compat
|
|
||||||
i--;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((propInfo.minHeight != null && height < propInfo.minHeight) || (propInfo.maxHeight != null && height > propInfo.maxHeight))
|
if ((propInfo.minHeight != null && height < propInfo.minHeight) || (propInfo.maxHeight != null && height > propInfo.maxHeight))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user