fixed a small bug in the datapoint

Simplified the code in the LodBufferBuilder
This commit is contained in:
Leonardo
2021-09-20 10:46:14 +02:00
parent 34b92d1053
commit ae857dfeae
2 changed files with 120 additions and 177 deletions
@@ -282,7 +282,7 @@ public class DataPointUtil
public static long[] mergeMultiData(long[] dataToMerge, int inputVerticalData,int maxVerticalData)
{
int size = dataToMerge.length / inputVerticalData;
short[] projection = ThreadMapUtil.getProjectionShort((WORLD_HEIGHT + 1) / 16);
short[] projection = ThreadMapUtil.getProjectionShort((WORLD_HEIGHT) / 16 + 1);
short[][] heightAndDepth = ThreadMapUtil.getHeightAndDepth(inputVerticalData);
long[] singleDataToMerge = ThreadMapUtil.getSingleAddDataToMerge(size);
int genMode = DistanceGenerationMode.SERVER.complexity;