1
0

take Z axis into account when calculating neighboors in LightingThread::ChunkReady

This commit is contained in:
Tycho Bickerstaff 2013-12-22 15:01:04 +00:00 committed by madmaxoft
parent 2e1588820d
commit 3da41de553

View File

@ -189,7 +189,7 @@ void cLightingThread::ChunkReady(int a_ChunkX, int a_ChunkZ)
{
if (
(itr->x - a_ChunkX >= -1) && (itr->x - a_ChunkX <= 1) &&
(itr->x - a_ChunkX >= -1) && (itr->x - a_ChunkX <= 1)
(itr->z - a_ChunkZ >= -1) && (itr->z - a_ChunkZ <= 1)
)
{
// It is a neighbor