From 7023548de006843963d6f56dcc6541f7bf9676e1 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 28 Aug 2020 21:32:46 +0100 Subject: Simplify MoveEntityToNewChunk - No longer try getting from the chunkmap if GetNeighborChunk fails, since nothing else does this and entities (in future) will not tick close to an unloaded chunk edge * GetRelNeighborChunk uses FindChunk --- src/ChunkMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ChunkMap.h') diff --git a/src/ChunkMap.h b/src/ChunkMap.h index 27794efa6..1b04ae3da 100644 --- a/src/ChunkMap.h +++ b/src/ChunkMap.h @@ -401,7 +401,7 @@ public: private: - // Chunks query their neighbors using GetChunk(), while being ticked + // Chunks query their neighbors using FindChunk(), while being ticked friend class cChunk; // The chunkstay can (de-)register itself using AddChunkStay() and DelChunkStay() -- cgit v1.2.3