summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 10:21:44 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 10:21:44 +0200
commit8e57f75622e7bb98a0251809fe7e31faaa7c1fee (patch)
tree487328d33e3f73ead17a6fa9b68a61cf98814767
parentdocs/Generator: Re-fixed the wording. (diff)
downloadcuberite-8e57f75622e7bb98a0251809fe7e31faaa7c1fee.tar
cuberite-8e57f75622e7bb98a0251809fe7e31faaa7c1fee.tar.gz
cuberite-8e57f75622e7bb98a0251809fe7e31faaa7c1fee.tar.bz2
cuberite-8e57f75622e7bb98a0251809fe7e31faaa7c1fee.tar.lz
cuberite-8e57f75622e7bb98a0251809fe7e31faaa7c1fee.tar.xz
cuberite-8e57f75622e7bb98a0251809fe7e31faaa7c1fee.tar.zst
cuberite-8e57f75622e7bb98a0251809fe7e31faaa7c1fee.zip
-rw-r--r--src/ChunkData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkData.cpp b/src/ChunkData.cpp
index 142c141c4..1fa2fd212 100644
--- a/src/ChunkData.cpp
+++ b/src/ChunkData.cpp
@@ -300,7 +300,7 @@ NIBBLETYPE cChunkData::GetSkyLight(int a_RelX, int a_RelY, int a_RelZ) const
if (m_Sections[Section] != NULL)
{
int Index = cChunkDef::MakeIndexNoCheck(a_RelX, a_RelY - (Section * SectionHeight), a_RelZ);
- return (m_Sections[Section]->m_BlockLight[Index / 2] >> ((Index & 1) * 4)) & 0x0f;
+ return (m_Sections[Section]->m_BlockSkyLight[Index / 2] >> ((Index & 1) * 4)) & 0x0f;
}
else
{