diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-04-10 13:22:11 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-04-10 13:22:11 +0200 |
commit | c51a4b9469fee0314d1b849206d1cf1c7c1240e4 (patch) | |
tree | 655d6a392b5483eea1453a08c24e269f8ae68d09 /source/cWorld.cpp | |
parent | Compression error -5 fix (diff) | |
download | cuberite-c51a4b9469fee0314d1b849206d1cf1c7c1240e4.tar cuberite-c51a4b9469fee0314d1b849206d1cf1c7c1240e4.tar.gz cuberite-c51a4b9469fee0314d1b849206d1cf1c7c1240e4.tar.bz2 cuberite-c51a4b9469fee0314d1b849206d1cf1c7c1240e4.tar.lz cuberite-c51a4b9469fee0314d1b849206d1cf1c7c1240e4.tar.xz cuberite-c51a4b9469fee0314d1b849206d1cf1c7c1240e4.tar.zst cuberite-c51a4b9469fee0314d1b849206d1cf1c7c1240e4.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cWorld.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp index 266d425e4..a2c651d44 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -1426,6 +1426,18 @@ void cWorld::ChunksStay(const cChunkCoordsList & a_Chunks, bool a_Stay) +void cWorld::RegenerateChunk(int a_ChunkX, int a_ChunkZ)
+{
+ m_ChunkMap->MarkChunkRegenerating(a_ChunkX, a_ChunkZ);
+
+ // Trick: use Y=1 to force the chunk generation even though the chunk data is already present
+ m_Generator.GenerateChunk(a_ChunkX, 1, a_ChunkZ);
+}
+
+
+
+
+
void cWorld::SaveAllChunks()
{
LOG("Saving all chunks...");
|