summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-29 18:19:27 +0200
committerMattes D <github@xoft.cz>2014-08-29 18:19:47 +0200
commit22e3bbd0db71f9bd6d0a4306db1127f257bd24b1 (patch)
tree28c19677ac10421b48ae1a8905c37a05d6785c4f /src/World.cpp
parentVanillaFluidSimulator: Fixed an invalid Y-coord query. (diff)
downloadcuberite-22e3bbd0db71f9bd6d0a4306db1127f257bd24b1.tar
cuberite-22e3bbd0db71f9bd6d0a4306db1127f257bd24b1.tar.gz
cuberite-22e3bbd0db71f9bd6d0a4306db1127f257bd24b1.tar.bz2
cuberite-22e3bbd0db71f9bd6d0a4306db1127f257bd24b1.tar.lz
cuberite-22e3bbd0db71f9bd6d0a4306db1127f257bd24b1.tar.xz
cuberite-22e3bbd0db71f9bd6d0a4306db1127f257bd24b1.tar.zst
cuberite-22e3bbd0db71f9bd6d0a4306db1127f257bd24b1.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);
}