Small render fixes

This commit is contained in:
MihailRis
2022-03-12 00:50:46 +03:00
committed by GitHub
parent 667eb6bab5
commit 32878de5f3
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ bool ChunksController::loadVisible(WorldFiles* worldFiles){
for (int oz = -1; oz <= 1; oz++){
for (int ox = -1; ox <= 1; ox++){
Chunk* other = chunks->getChunk(chunk->x+ox, chunk->y, chunk->z+oz);
if (other != nullptr) surrounding++;
if (other != nullptr && other->ready) surrounding++;
}
}
chunk->surrounding = surrounding;