diff options
author | Alexander Harkness <me@bearbin.net> | 2017-09-07 12:56:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-07 12:56:17 +0200 |
commit | b5a23e5cd9601a8d0779ecf930b84506fbd398d1 (patch) | |
tree | c9d53f7f718bdfc8b37143330d1536f631888333 /src/LightingThread.cpp | |
parent | Switched player statistic store to save with UUID filenames. (#4002) (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/LightingThread.cpp | 3 |
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 |