summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-02-22 09:30:24 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-02-22 09:30:24 +0100
commit8077c495935b3cd6f289b220bf8e972cfcfd9279 (patch)
tree49831950eba38a8457775925ee08aab4b1e6c998
parentMerge pull request #2897 from cuberite/FlushLuaSsl (diff)
downloadcuberite-8077c495935b3cd6f289b220bf8e972cfcfd9279.tar
cuberite-8077c495935b3cd6f289b220bf8e972cfcfd9279.tar.gz
cuberite-8077c495935b3cd6f289b220bf8e972cfcfd9279.tar.bz2
cuberite-8077c495935b3cd6f289b220bf8e972cfcfd9279.tar.lz
cuberite-8077c495935b3cd6f289b220bf8e972cfcfd9279.tar.xz
cuberite-8077c495935b3cd6f289b220bf8e972cfcfd9279.tar.zst
cuberite-8077c495935b3cd6f289b220bf8e972cfcfd9279.zip
-rw-r--r--src/ChunkMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index 935f03c10..660d4a9ea 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1685,7 +1685,7 @@ bool cChunkMap::HasEntity(UInt32 a_UniqueID)
void cChunkMap::RemoveEntity(cEntity * a_Entity)
{
cCSLock Lock(m_CSLayers);
- cChunkPtr Chunk = GetChunkNoGen(a_Entity->GetChunkX(), a_Entity->GetChunkZ());
+ cChunkPtr Chunk = a_Entity->GetParentChunk();
// Even if a chunk is not valid, it may still contain entities such as players; make sure to remove them (#1190)
if (Chunk == nullptr)