summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-22 16:01:04 +0100
committermadmaxoft <github@xoft.cz>2013-12-31 09:16:43 +0100
commit3da41de5539337438e6091dd1830505b755124eb (patch)
treec18824db115a6a17adc63b419ced4bf197d02602 /src
parentfixed warnings in World.cpp (diff)
downloadcuberite-3da41de5539337438e6091dd1830505b755124eb.tar
cuberite-3da41de5539337438e6091dd1830505b755124eb.tar.gz
cuberite-3da41de5539337438e6091dd1830505b755124eb.tar.bz2
cuberite-3da41de5539337438e6091dd1830505b755124eb.tar.lz
cuberite-3da41de5539337438e6091dd1830505b755124eb.tar.xz
cuberite-3da41de5539337438e6091dd1830505b755124eb.tar.zst
cuberite-3da41de5539337438e6091dd1830505b755124eb.zip
Diffstat (limited to 'src')
-rw-r--r--src/LightingThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LightingThread.cpp b/src/LightingThread.cpp
index d7e60e458..d9c41481a 100644
--- a/src/LightingThread.cpp
+++ b/src/LightingThread.cpp
@@ -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