now actually remove garbage vertical lods

This commit is contained in:
cola98765
2021-10-14 18:51:39 +02:00
parent 7c07a88b45
commit 5ee762cc78
2 changed files with 1 additions and 5 deletions
@@ -214,9 +214,6 @@ public class LodBuilder
{
for (int verticalIndex = 0; verticalIndex < lodDim.getMaxVerticalData(detailLevel, posX, posZ); verticalIndex++)
{
if (!DataPointUtil.doesItExist(data[verticalIndex]))
break;
lodDim.addData(detailLevel,
posX,
posZ,
@@ -374,9 +374,7 @@ public class DataPointUtil
//We check if there is any data that's not empty or void
if (allEmpty)
{
return dataPoint;
}
if (allVoid)
{
dataPoint[0] = createVoidDataPoint(genMode);
@@ -396,6 +394,7 @@ public class DataPointUtil
heightAndDepth[j * 2 + 1] = heightAndDepth[(j + 1) * 2 + 1];
}
count--;
i--;
}
}