|
@@ -238,6 +238,11 @@ bool Chunk::isVisible(int index) const
|
|
|
if (pos.y >= CHUNK_SIZE) pos.y -= CHUNK_SIZE;
|
|
|
n = zNeighbours[d]->zBlockAt(pos);
|
|
|
}
|
|
|
+ else if (pos.z >= 0 && pos.z < WORLD_HEIGHT && d < 4
|
|
|
+ && !zNeighbours[d])
|
|
|
+ {
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
if (n.isA()
|
|
|
&& (((Block*)n)->isPassable()
|
|
|
|| ((Block*)n)->isTransparent()))
|