summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-08-21 00:23:23 +0200
committerLukas Pioch <lukas@zgow.de>2017-08-26 20:56:44 +0200
commit447d929da18b656227c77d9c00958bcf52afeeb2 (patch)
tree9614d84d6164f79be0061495a684d76b583f1f13 /src/WorldStorage/NBTChunkSerializer.cpp
parentLeashes work in 1.12.1 (diff)
downloadcuberite-447d929da18b656227c77d9c00958bcf52afeeb2.tar
cuberite-447d929da18b656227c77d9c00958bcf52afeeb2.tar.gz
cuberite-447d929da18b656227c77d9c00958bcf52afeeb2.tar.bz2
cuberite-447d929da18b656227c77d9c00958bcf52afeeb2.tar.lz
cuberite-447d929da18b656227c77d9c00958bcf52afeeb2.tar.xz
cuberite-447d929da18b656227c77d9c00958bcf52afeeb2.tar.zst
cuberite-447d929da18b656227c77d9c00958bcf52afeeb2.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index 73c633e1a..1e8543648 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -68,11 +68,11 @@ void cNBTChunkSerializer::Finish(void)
m_Writer.EndList();
}
- // If light not valid, reset it to all zeroes:
+ // If light not valid, reset it to defaults:
if (!m_IsLightValid)
{
- memset(m_BlockLight, 0, sizeof(m_BlockLight));
- memset(m_BlockSkyLight, 0, sizeof(m_BlockSkyLight));
+ m_Data.FillBlockLight(0x00);
+ m_Data.FillSkyLight(0x0f);
}
// Check if "Entity" and "TileEntities" lists exists. MCEdit requires this.