summaryrefslogtreecommitdiffstats
path: root/source/cChunk.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 20:30:06 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 20:30:06 +0100
commit732b7349faa4ee78fee8da151db47853143c48fd (patch)
tree6c05ef9f2951b1096e9903f6bcf37428cbb06323 /source/cChunk.cpp
parentFixed *nix threading issue; (diff)
downloadcuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar
cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.gz
cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.bz2
cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.lz
cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.xz
cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.zst
cuberite-732b7349faa4ee78fee8da151db47853143c48fd.zip
Diffstat (limited to 'source/cChunk.cpp')
-rw-r--r--source/cChunk.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp
index 9d0fc8bdf..f56584cbf 100644
--- a/source/cChunk.cpp
+++ b/source/cChunk.cpp
@@ -257,8 +257,9 @@ void cChunk::SetAllData(const char * a_BlockData, cEntityList & a_Entities, cBlo
m_PosX, m_PosZ
);
- // Assert because this is a very curious case. These lines were executed once before, when a player died, re spawned, and walked around a bit. It's uncertain why an entity would be in the chunk in this case.
- ASSERT(!"Unexpected entity in chunk!");
+ // MD 2012_03_10: This may happen if a mob is generated near the edge of loaded chunks and walks off of the edge.
+ // Older: Assert because this is a very curious case. These lines were executed once before, when a player died, re spawned, and walked around a bit. It's uncertain why an entity would be in the chunk in this case.
+ // ASSERT(!"Unexpected entity in chunk!");
(*itr)->Destroy();
}