From 047cef184d7f63fef311694572a17c65b4d3d43f Mon Sep 17 00:00:00 2001 From: James Seibel Date: Fri, 13 Aug 2021 23:34:23 -0500 Subject: [PATCH] Update TODO comment --- src/main/java/com/seibel/lod/objects/LodQuadTreeNode.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/seibel/lod/objects/LodQuadTreeNode.java b/src/main/java/com/seibel/lod/objects/LodQuadTreeNode.java index 745791188..22f4f15a9 100644 --- a/src/main/java/com/seibel/lod/objects/LodQuadTreeNode.java +++ b/src/main/java/com/seibel/lod/objects/LodQuadTreeNode.java @@ -24,7 +24,6 @@ import java.util.Objects; import com.seibel.lod.enums.DistanceGenerationMode; import com.seibel.lod.handlers.LodQuadTreeDimensionFileHandler; -import kaptainwutax.mcutils.block.Block; import net.minecraft.util.math.BlockPos; import net.minecraft.world.gen.Heightmap; @@ -284,7 +283,9 @@ public class LodQuadTreeNode } else { - // TODO would it be better to use the average height/depth? + // TODO use the average height/depth, otherwise some areas look flat + // when they shouldn't. + // get the lowest height from the all the given LodQuadTreeNodes short height = (short) dataList.stream().mapToInt(x -> (int) x.getLodDataPoint().height).min().getAsInt(); // get the highest depth