summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-02 20:56:42 +0200
committermadmaxoft <github@xoft.cz>2014-05-02 20:56:42 +0200
commit8ff7cf926219d7e80a538e21f3f7af6e047fd25e (patch)
tree4075da20e157887f3a3a156357bbe0de689fde42
parentOpen files in shared mode on windows, so that other tools may read them. (diff)
downloadcuberite-8ff7cf926219d7e80a538e21f3f7af6e047fd25e.tar
cuberite-8ff7cf926219d7e80a538e21f3f7af6e047fd25e.tar.gz
cuberite-8ff7cf926219d7e80a538e21f3f7af6e047fd25e.tar.bz2
cuberite-8ff7cf926219d7e80a538e21f3f7af6e047fd25e.tar.lz
cuberite-8ff7cf926219d7e80a538e21f3f7af6e047fd25e.tar.xz
cuberite-8ff7cf926219d7e80a538e21f3f7af6e047fd25e.tar.zst
cuberite-8ff7cf926219d7e80a538e21f3f7af6e047fd25e.zip
-rw-r--r--src/Chunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index cd3bceda2..59e8894fc 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -380,12 +380,12 @@ void cChunk::SetLight(
{ // Compress blocklight
m_BlockLight.clear();
- m_BlockLight.insert(m_BlockLight.end(), &a_BlockLight[0], &a_BlockLight[m_BlockTypes.size()]);
+ m_BlockLight.insert(m_BlockLight.end(), &a_BlockLight[0], &a_BlockLight[m_BlockTypes.size() / 2]);
}
{ // Compress skylight
m_BlockSkyLight.clear();
- m_BlockSkyLight.insert(m_BlockSkyLight.end(), &a_SkyLight[0], &a_SkyLight[m_BlockTypes.size()]);
+ m_BlockSkyLight.insert(m_BlockSkyLight.end(), &a_SkyLight[0], &a_SkyLight[m_BlockTypes.size() / 2]);
}
m_IsLightValid = true;