cleaned out some code.

This commit is contained in:
cola98765
2021-10-13 13:31:47 +02:00
parent 80edf19b33
commit ef4ba7208e
2 changed files with 3 additions and 7 deletions
@@ -180,9 +180,7 @@ public class LodBufferBuilder
Thread thread = new Thread(() ->
{
generateLodBuffersThread(renderer, lodDim, playerBlockPos, fullRegen);
});
generateLodBuffersThread(renderer, lodDim, playerBlockPos, fullRegen));
mainGenThread.execute(thread);
}
@@ -394,7 +394,7 @@ public class LodUtil
{
case ALWAYS:
// don't skip any positions
return new HashSet<ChunkPos>();
return new HashSet<>();
case DYNAMIC:
// only skip positions that are greater than
@@ -424,11 +424,9 @@ public class LodUtil
for (int z = centerChunk.z - chunkRenderDist; z < centerChunk.z + chunkRenderDist; z++)
{
if (x <= centerChunk.x - skipRadius || x >= centerChunk.x + skipRadius
||
z <= centerChunk.z - skipRadius || z >= centerChunk.z + skipRadius)
|| z <= centerChunk.z - skipRadius || z >= centerChunk.z + skipRadius)
{
posToSkip.remove(new ChunkPos(x, z));
continue;
}
}
}