summaryrefslogtreecommitdiffstats
path: root/src/LightingThread.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2017-09-07 12:56:17 +0200
committerGitHub <noreply@github.com>2017-09-07 12:56:17 +0200
commitb5a23e5cd9601a8d0779ecf930b84506fbd398d1 (patch)
treec9d53f7f718bdfc8b37143330d1536f631888333 /src/LightingThread.cpp
parentSwitched player statistic store to save with UUID filenames. (#4002) (diff)
downloadcuberite-b5a23e5cd9601a8d0779ecf930b84506fbd398d1.tar
cuberite-b5a23e5cd9601a8d0779ecf930b84506fbd398d1.tar.gz
cuberite-b5a23e5cd9601a8d0779ecf930b84506fbd398d1.tar.bz2
cuberite-b5a23e5cd9601a8d0779ecf930b84506fbd398d1.tar.lz
cuberite-b5a23e5cd9601a8d0779ecf930b84506fbd398d1.tar.xz
cuberite-b5a23e5cd9601a8d0779ecf930b84506fbd398d1.tar.zst
cuberite-b5a23e5cd9601a8d0779ecf930b84506fbd398d1.zip
Diffstat (limited to 'src/LightingThread.cpp')
-rw-r--r--src/LightingThread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LightingThread.cpp b/src/LightingThread.cpp
index df1a802a5..302a7ba01 100644
--- a/src/LightingThread.cpp
+++ b/src/LightingThread.cpp
@@ -378,7 +378,8 @@ void cLightingThread::PrepareSkyLight(void)
ASSERT(Current < cChunkDef::Height);
while (
(Current >= 0) &&
- cBlockInfo::IsTransparent(m_BlockTypes[idx + Current * BlocksPerYLayer])
+ cBlockInfo::IsTransparent(m_BlockTypes[idx + Current * BlocksPerYLayer]) &&
+ !cBlockInfo::IsSkylightDispersant(m_BlockTypes[idx + Current * BlocksPerYLayer])
)
{
Current -= 1; // Sunlight goes down unchanged through this block