Small fix to the index of vanillaRenderedChunks

This commit is contained in:
Leonardo
2021-09-01 17:27:37 +02:00
parent e3dfe658f5
commit 32e587d536
2 changed files with 6 additions and 5 deletions
@@ -857,8 +857,8 @@ public class LodRenderer
int chunkZ;
for (ChunkPos pos : chunkPosToSkip)
{
chunkX = pos.x - mc.player.xChunk + renderDistance;
chunkZ = pos.z - mc.player.zChunk + renderDistance;
chunkX = pos.x - mc.player.xChunk + renderDistance + 1;
chunkZ = pos.z - mc.player.zChunk + renderDistance + 1;
if(!vanillaRenderedChunks[chunkX][chunkZ])
{
vanillaRenderedChunks[chunkX][chunkZ] = true;