summaryrefslogtreecommitdiffstats
path: root/src/Generating/ChunkGenerator.cpp
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-09-15 18:12:03 +0200
committertycho <work.tycho@gmail.com>2015-11-11 13:28:12 +0100
commit6c4740c79889531ca1109d0f2d81eef6f8326e31 (patch)
tree8e35d0d269f70c0e04791f2708f9e551d74e3363 /src/Generating/ChunkGenerator.cpp
parentMerge pull request #2632 from Gargaj/patch-1 (diff)
downloadcuberite-serverTick.tar
cuberite-serverTick.tar.gz
cuberite-serverTick.tar.bz2
cuberite-serverTick.tar.lz
cuberite-serverTick.tar.xz
cuberite-serverTick.tar.zst
cuberite-serverTick.zip
Diffstat (limited to 'src/Generating/ChunkGenerator.cpp')
-rw-r--r--src/Generating/ChunkGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/ChunkGenerator.cpp b/src/Generating/ChunkGenerator.cpp
index bfa3344b9..977c88b4e 100644
--- a/src/Generating/ChunkGenerator.cpp
+++ b/src/Generating/ChunkGenerator.cpp
@@ -260,7 +260,7 @@ void cChunkGenerator::Execute(void)
}
// Skip the chunk if the generator is overloaded:
- if (SkipEnabled && !m_ChunkSink->HasChunkAnyClients(item.m_ChunkX, item.m_ChunkZ))
+ if (SkipEnabled && !m_ChunkSink->IsNeeded(item.m_ChunkX, item.m_ChunkZ))
{
LOGWARNING("Chunk generator overloaded, skipping chunk [%d, %d]", item.m_ChunkX, item.m_ChunkZ);
if (item.m_Callback != nullptr)