cleaned out some code.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user