summaryrefslogtreecommitdiffstats
path: root/source/ChunkMap.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-25 08:48:17 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-25 08:48:17 +0200
commitf6b3ab7b42c4d7b1799f3b2d02cd8ac563eae38d (patch)
treef91cd255e5eeee018cf0678faf34f8546aa63911 /source/ChunkMap.cpp
parentUnified the way mobs are spawned (egg vs natural). Fixed deadlocks in mob moving. Fixed mob destroying code. (diff)
downloadcuberite-f6b3ab7b42c4d7b1799f3b2d02cd8ac563eae38d.tar
cuberite-f6b3ab7b42c4d7b1799f3b2d02cd8ac563eae38d.tar.gz
cuberite-f6b3ab7b42c4d7b1799f3b2d02cd8ac563eae38d.tar.bz2
cuberite-f6b3ab7b42c4d7b1799f3b2d02cd8ac563eae38d.tar.lz
cuberite-f6b3ab7b42c4d7b1799f3b2d02cd8ac563eae38d.tar.xz
cuberite-f6b3ab7b42c4d7b1799f3b2d02cd8ac563eae38d.tar.zst
cuberite-f6b3ab7b42c4d7b1799f3b2d02cd8ac563eae38d.zip
Diffstat (limited to 'source/ChunkMap.cpp')
-rw-r--r--source/ChunkMap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/ChunkMap.cpp b/source/ChunkMap.cpp
index be823b74a..b1471dc6c 100644
--- a/source/ChunkMap.cpp
+++ b/source/ChunkMap.cpp
@@ -1462,6 +1462,9 @@ void cChunkMap::AddEntity(cEntity * a_Entity)
cChunkPtr Chunk = GetChunkNoGen(a_Entity->GetChunkX(), ZERO_CHUNK_Y, a_Entity->GetChunkZ());
if ((Chunk == NULL) && !Chunk->IsValid())
{
+ LOGWARNING("Entity at %p (%s, ID %d) spawning in a non-existent chunk, the entity is lost.",
+ a_Entity, a_Entity->GetClass(), a_Entity->GetUniqueID()
+ );
return;
}
Chunk->AddEntity(a_Entity);