From 5be88e7bfaed12589596e9996c3d1579b048d32f Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 27 Jul 2022 23:54:18 -0400 Subject: [PATCH] John smart --- NewHorizons/Builder/Props/ScatterBuilder.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/NewHorizons/Builder/Props/ScatterBuilder.cs b/NewHorizons/Builder/Props/ScatterBuilder.cs index 0119febf..45c1a19f 100644 --- a/NewHorizons/Builder/Props/ScatterBuilder.cs +++ b/NewHorizons/Builder/Props/ScatterBuilder.cs @@ -76,13 +76,8 @@ namespace NewHorizons.Builder.Props float relativeHeight = heightMapTexture.GetPixel((int)sampleX, (int)sampleY).r; height = (relativeHeight * (heightMap.maxHeight - heightMap.minHeight) + heightMap.minHeight); - if (config.Water != null && propInfo.minHeight == null && height < config.Water.size - 1f) - { - // Don't put underwater - // Silly 1 meter thing is for backwards compat - i--; - continue; - } + // By default don't put underwater more than a mater + if (config.Water != null && propInfo.minHeight == null) propInfo.minHeight = config.Water.size - 1f; if ((propInfo.minHeight != null && height < propInfo.minHeight) || (propInfo.maxHeight != null && height > propInfo.maxHeight)) {