Fix LodChunk not having the detail level set

This commit is contained in:
James Seibel
2021-06-17 20:58:20 -05:00
parent a28da86d44
commit b98cfb9666
2 changed files with 4 additions and 2 deletions
@@ -145,7 +145,7 @@ public class LodBuilder
dataPoints[x][z] = new LodDataPoint(height, depth, color);
}
return new LodChunk(chunk.getPos(), dataPoints);
return new LodChunk(chunk.getPos(), dataPoints, detail);
}
@@ -165,13 +165,15 @@ public class LodChunk
/**
* Create a LodChunk from the given values.
*/
public LodChunk(ChunkPos pos, LodDataPoint[][] newDataPoints)
public LodChunk(ChunkPos pos, LodDataPoint[][] newDataPoints, LodDetail newDetail)
{
x = pos.x;
z = pos.z;
dataPoints = newDataPoints;
detail = newDetail;
empty = determineIfEmtpy();
}