From 177cf041db6c8cab5d8a7dd512f8f41b17b1e281 Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Mon, 2 Nov 2020 16:44:02 +0100 Subject: Added new flowers on bonemeal use (#5011) + Added new biome-dependent flower placement * Update planter algorithm Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang --- src/ChunkMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ChunkMap.cpp') diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index 53bb905a6..46fafd480 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -93,7 +93,7 @@ cChunk * cChunkMap::FindChunk(int a_ChunkX, int a_ChunkZ) { ASSERT(m_CSChunks.IsLockedByCurrentThread()); - auto Chunk = m_Chunks.find({ a_ChunkX, a_ChunkZ }); + const auto Chunk = m_Chunks.find({ a_ChunkX, a_ChunkZ }); return (Chunk == m_Chunks.end()) ? nullptr : &Chunk->second; } -- cgit v1.2.3