summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/World.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/World.cpp b/src/World.cpp
index f6fed53ee..2301cd8c6 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -2900,7 +2900,7 @@ void cWorld::RegenerateChunk(int a_ChunkX, int a_ChunkZ)
{
m_ChunkMap->MarkChunkRegenerating(a_ChunkX, a_ChunkZ);
- m_Generator.QueueGenerateChunk(a_ChunkX, a_ChunkZ);
+ m_Generator.QueueGenerateChunk(a_ChunkX, a_ChunkZ, true);
}
@@ -2909,16 +2909,7 @@ void cWorld::RegenerateChunk(int a_ChunkX, int a_ChunkZ)
void cWorld::GenerateChunk(int a_ChunkX, int a_ChunkZ)
{
- /** Add a chunk to the generation queue, if it's not already present. */
- if (!(m_ChunkMap->IsChunkValid(a_ChunkX, a_ChunkZ)))
- {
- LOGD("Chunk [%d, %d] already generated, skipping generation", a_ChunkX, a_ChunkZ);
- /** Already generated, ignore request */
- }
- else
- {
- m_Generator.QueueGenerateChunk(a_ChunkX, a_ChunkZ);
- }
+ m_Generator.QueueGenerateChunk(a_ChunkX, a_ChunkZ, false);
}