diff options
author | LO1ZB <andreasdaamen@web.de> | 2014-08-29 20:19:45 +0200 |
---|---|---|
committer | LO1ZB <andreasdaamen@web.de> | 2014-08-29 20:19:45 +0200 |
commit | 75e131638616c68d126eb64abdf903a93dd7322f (patch) | |
tree | 2b8e047e67d21e4d642cd856bdbcab0c1689e94a /src/World.cpp | |
parent | remove y-coord from chunks (diff) | |
download | cuberite-75e131638616c68d126eb64abdf903a93dd7322f.tar cuberite-75e131638616c68d126eb64abdf903a93dd7322f.tar.gz cuberite-75e131638616c68d126eb64abdf903a93dd7322f.tar.bz2 cuberite-75e131638616c68d126eb64abdf903a93dd7322f.tar.lz cuberite-75e131638616c68d126eb64abdf903a93dd7322f.tar.xz cuberite-75e131638616c68d126eb64abdf903a93dd7322f.tar.zst cuberite-75e131638616c68d126eb64abdf903a93dd7322f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp index eba3a8357..aba5bd859 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -2909,7 +2909,15 @@ void cWorld::RegenerateChunk(int a_ChunkX, int a_ChunkZ) void cWorld::GenerateChunk(int a_ChunkX, int a_ChunkZ) { + if (!(m_ChunkMap->IsChunkValid(a_ChunkX, a_ChunkZ))) + { + LOGD("Chunk [%d, %d] already generated, skipping generation", a_ChunkX, a_ChunkZ); + // Already generated, ignore reques + } + else + { m_Generator.QueueGenerateChunk(a_ChunkX, a_ChunkZ); + } } |