summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-05-21 21:08:34 +0200
committerTycho <work.tycho+git@gmail.com>2014-05-21 21:08:34 +0200
commit5929ffbc40d24f4e69cf12c8495d194407547c9c (patch)
tree00491fccd2db8f36db39b950508cc516600c3031 /src/BlockArea.cpp
parentRenamed cChunkBuffer to cChunkData (diff)
downloadcuberite-5929ffbc40d24f4e69cf12c8495d194407547c9c.tar
cuberite-5929ffbc40d24f4e69cf12c8495d194407547c9c.tar.gz
cuberite-5929ffbc40d24f4e69cf12c8495d194407547c9c.tar.bz2
cuberite-5929ffbc40d24f4e69cf12c8495d194407547c9c.tar.lz
cuberite-5929ffbc40d24f4e69cf12c8495d194407547c9c.tar.xz
cuberite-5929ffbc40d24f4e69cf12c8495d194407547c9c.tar.zst
cuberite-5929ffbc40d24f4e69cf12c8495d194407547c9c.zip
Diffstat (limited to 'src/BlockArea.cpp')
-rw-r--r--src/BlockArea.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp
index 0c46e59e5..abbfca767 100644
--- a/src/BlockArea.cpp
+++ b/src/BlockArea.cpp
@@ -1838,7 +1838,7 @@ bool cBlockArea::cChunkReader::Coords(int a_ChunkX, int a_ChunkZ)
void cBlockArea::cChunkReader::ChunkData(const cChunkData & a_BlockBuffer)
{
{
- if (!(m_Area.m_BlockTypes == NULL))
+ if (m_Area.m_BlockTypes != NULL)
{
int SizeY = m_Area.m_Size.y;
int MinY = m_Origin.y;
@@ -1901,17 +1901,17 @@ void cBlockArea::cChunkReader::ChunkData(const cChunkData & a_BlockBuffer)
}
}
- if (m_Area.m_BlockMetas)
+ if (m_Area.m_BlockMetas != NULL)
{
a_BlockBuffer.CopyMeta(m_Area.m_BlockMetas);
}
- if (m_Area.m_BlockLight)
+ if (m_Area.m_BlockLight != NULL)
{
a_BlockBuffer.CopyLight(m_Area.m_BlockLight);
}
- if (m_Area.m_BlockSkyLight)
+ if (m_Area.m_BlockSkyLight != NULL)
{
a_BlockBuffer.CopySkyLight(m_Area.m_BlockSkyLight);
}