summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-30 12:21:39 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-30 12:21:39 +0200
commit80bd0a54579cbe5188d42bf8e1e51724d19a6fcf (patch)
tree39ded239dea2d76854283a47b3f29cc12b8801e1 /src/World.cpp
parentAdded speed entity effect. (diff)
parentcChunk: Fixed the Coords param. (diff)
downloadcuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar
cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.gz
cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.bz2
cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.lz
cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.xz
cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.zst
cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 69d1217f1..b01e53638 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -3484,14 +3484,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);
}