diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-08-21 00:23:23 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2017-08-26 20:56:44 +0200 |
commit | 447d929da18b656227c77d9c00958bcf52afeeb2 (patch) | |
tree | 9614d84d6164f79be0061495a684d76b583f1f13 /src/WorldStorage/NBTChunkSerializer.cpp | |
parent | Leashes work in 1.12.1 (diff) | |
download | cuberite-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.cpp | 6 |
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. |