Added different generation detail option

This commit is contained in:
Leonardo
2021-08-22 19:54:10 +02:00
parent d5112be385
commit 31cb684bec
7 changed files with 28 additions and 26 deletions
@@ -54,7 +54,7 @@ public enum LodDetail
public final int dataPointWidth;
/** This is the same as detailLevel in LodQuadTreeNode,
* lowest is 0 highest is 9 */
public final int detailLevel;
public final byte detailLevel;
/* Start/End X/Z give the block positions
* for each individual dataPoint in a LodChunk */
@@ -80,7 +80,7 @@ public enum LodDetail
private LodDetail(int newLengthCount, int newDetailLevel)
{
detailLevel = newDetailLevel;
detailLevel = (byte) newDetailLevel;
dataPointLengthCount = newLengthCount;
dataPointWidth = 16 / dataPointLengthCount;