diff options
author | madmaxoft <github@xoft.cz> | 2014-08-30 22:17:49 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-08-30 22:17:49 +0200 |
commit | 26b8471280b876f624abb07db6616e67c11f5faa (patch) | |
tree | e058274eb79850074b2502a0a39a72c9b37e08fc /src/World.cpp | |
parent | Updated Core (diff) | |
parent | WSSAnvil: Removed leftover debugging code. (diff) | |
download | cuberite-26b8471280b876f624abb07db6616e67c11f5faa.tar cuberite-26b8471280b876f624abb07db6616e67c11f5faa.tar.gz cuberite-26b8471280b876f624abb07db6616e67c11f5faa.tar.bz2 cuberite-26b8471280b876f624abb07db6616e67c11f5faa.tar.lz cuberite-26b8471280b876f624abb07db6616e67c11f5faa.tar.xz cuberite-26b8471280b876f624abb07db6616e67c11f5faa.tar.zst cuberite-26b8471280b876f624abb07db6616e67c11f5faa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp index 4e9126193..99e09c658 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -3487,14 +3487,16 @@ void cWorld::cChunkGeneratorCallbacks::OnChunkGenerated(cChunkDesc & a_ChunkDesc cChunkDef::BlockNibbles BlockMetas; a_ChunkDesc.CompressBlockMetas(BlockMetas); - m_World->QueueSetChunkData(cSetChunkDataPtr(new cSetChunkData( + cSetChunkDataPtr SetChunkData(new cSetChunkData( a_ChunkDesc.GetChunkX(), a_ChunkDesc.GetChunkZ(), a_ChunkDesc.GetBlockTypes(), BlockMetas, NULL, NULL, // We don't have lighting, chunk will be lighted when needed &a_ChunkDesc.GetHeightMap(), &a_ChunkDesc.GetBiomeMap(), a_ChunkDesc.GetEntities(), a_ChunkDesc.GetBlockEntities(), true - ))); + )); + SetChunkData->RemoveInvalidBlockEntities(); + m_World->QueueSetChunkData(SetChunkData); } |