small fixes

This commit is contained in:
Leonardo
2021-08-23 16:05:21 +02:00
parent 4795ddd1ff
commit 181539b83b
2 changed files with 1 additions and 4 deletions
@@ -248,9 +248,7 @@ public class LodDimension
{
/**TODO the value is currently 0 but should be determinated by the distance of the player)*/
regions[xIndex][zIndex] = new LodRegion(LodConfig.CLIENT.maxGenerationDetail.get().detailLevel, regionPos);
}
if (regions[xIndex][zIndex].getMinDetailLevel() > levelPos.detailLevel)
}else if (regions[xIndex][zIndex].getMinDetailLevel() > levelPos.detailLevel)
{
regions[xIndex][zIndex].expand(levelPos.detailLevel);
}
@@ -606,7 +606,6 @@ public class LodRegion implements Serializable
{
if(minDetailLevel < detailLevel)
{
System.out.println("cutting at " + detailLevel);
for (byte tempLod = 0; tempLod < detailLevel; tempLod++)
{
colors[tempLod] = new byte[0][0][0];