summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-27 23:32:37 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-27 23:32:37 +0200
commitb934d030d38581623b917016e2dee4e73ba8b3f9 (patch)
tree0fc25b5c0a41835d18e95f6564bac33873232780
parentFixed server stopping after #363 fix (diff)
downloadcuberite-b934d030d38581623b917016e2dee4e73ba8b3f9.tar
cuberite-b934d030d38581623b917016e2dee4e73ba8b3f9.tar.gz
cuberite-b934d030d38581623b917016e2dee4e73ba8b3f9.tar.bz2
cuberite-b934d030d38581623b917016e2dee4e73ba8b3f9.tar.lz
cuberite-b934d030d38581623b917016e2dee4e73ba8b3f9.tar.xz
cuberite-b934d030d38581623b917016e2dee4e73ba8b3f9.tar.zst
cuberite-b934d030d38581623b917016e2dee4e73ba8b3f9.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/Noise3DGenerator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/Generating/Noise3DGenerator.cpp b/source/Generating/Noise3DGenerator.cpp
index 4211f9529..2eae7cbc8 100644
--- a/source/Generating/Noise3DGenerator.cpp
+++ b/source/Generating/Noise3DGenerator.cpp
@@ -472,6 +472,8 @@ void cNoise3DComposable::ComposeTerrain(cChunkDesc & a_ChunkDesc)
{
GenerateNoiseArrayIfNeeded(a_ChunkDesc.GetChunkX(), a_ChunkDesc.GetChunkZ());
+ a_ChunkDesc.FillBlocks(E_BLOCK_AIR, 0);
+
// Make basic terrain composition:
for (int z = 0; z < cChunkDef::Width; z++)
{
@@ -479,9 +481,9 @@ void cNoise3DComposable::ComposeTerrain(cChunkDesc & a_ChunkDesc)
{
int LastAir = a_ChunkDesc.GetHeight(x, z) + 1;
bool HasHadWater = false;
- for (int y = LastAir; y < cChunkDef::Height; y++)
+ for (int y = LastAir; y < m_SeaLevel; y++)
{
- a_ChunkDesc.SetBlockType(x, y, z, E_BLOCK_AIR);
+ a_ChunkDesc.SetBlockType(x, y, z, E_BLOCK_STATIONARY_WATER);
}
for (int y = LastAir - 1; y > 0; y--)
{