summaryrefslogtreecommitdiffstats
path: root/src/LightingThread.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-10-04 14:06:37 +0200
committerMattes D <github@xoft.cz>2015-10-04 14:06:37 +0200
commit9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf (patch)
tree06ae98c7848c29b812b50b91ab4b2cbb49cd6e13 /src/LightingThread.cpp
parentMerge pull request #2519 from cuberite/RemoveStyleCheckFromTravis (diff)
downloadcuberite-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 'src/LightingThread.cpp')
-rw-r--r--src/LightingThread.cpp6
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);
}
}