diff options
author | Mattes D <github@xoft.cz> | 2015-10-04 14:06:37 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-10-04 14:06:37 +0200 |
commit | 9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf (patch) | |
tree | 06ae98c7848c29b812b50b91ab4b2cbb49cd6e13 /src/LightingThread.cpp | |
parent | Merge pull request #2519 from cuberite/RemoveStyleCheckFromTravis (diff) | |
download | cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.gz cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.bz2 cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.lz cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.xz cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.zst cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.zip |
Diffstat (limited to '')
-rw-r--r-- | src/LightingThread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LightingThread.cpp b/src/LightingThread.cpp index b5102c11b..25956ae86 100644 --- a/src/LightingThread.cpp +++ b/src/LightingThread.cpp @@ -238,12 +238,12 @@ void cLightingThread::Execute(void) void cLightingThread::LightChunk(cLightingChunkStay & a_Item) { - // If the chunk is already lit, skip it: + // If the chunk is already lit, skip it (report as success): if (m_World->IsChunkLighted(a_Item.m_ChunkX, a_Item.m_ChunkZ)) { if (a_Item.m_CallbackAfter != nullptr) { - a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ); + a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ, true); } return; } @@ -324,7 +324,7 @@ void cLightingThread::LightChunk(cLightingChunkStay & a_Item) if (a_Item.m_CallbackAfter != nullptr) { - a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ); + a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ, true); } } |