summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-20 18:05:30 +0100
committerMattes D <github@xoft.cz>2014-11-20 18:05:30 +0100
commit1e887d138103504e9a0df4ba5a601236ae608f98 (patch)
treeec160cd48e60a5015666c6b3f0ec5bd0f1bc53d9
parentGenerators: Unified SeaLevel into a single variable. (diff)
downloadcuberite-1e887d138103504e9a0df4ba5a601236ae608f98.tar
cuberite-1e887d138103504e9a0df4ba5a601236ae608f98.tar.gz
cuberite-1e887d138103504e9a0df4ba5a601236ae608f98.tar.bz2
cuberite-1e887d138103504e9a0df4ba5a601236ae608f98.tar.lz
cuberite-1e887d138103504e9a0df4ba5a601236ae608f98.tar.xz
cuberite-1e887d138103504e9a0df4ba5a601236ae608f98.tar.zst
cuberite-1e887d138103504e9a0df4ba5a601236ae608f98.zip
-rw-r--r--src/Generating/CompoGenBiomal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Generating/CompoGenBiomal.cpp b/src/Generating/CompoGenBiomal.cpp
index 38c91c0d2..18bfa8b8c 100644
--- a/src/Generating/CompoGenBiomal.cpp
+++ b/src/Generating/CompoGenBiomal.cpp
@@ -427,7 +427,8 @@ protected:
{
bool HasHadWater = false;
int PatternIdx = 0;
- for (int y = a_ChunkDesc.GetHeight(a_RelX, a_RelZ); y > 0; y--)
+ int top = std::max(m_SeaLevel, a_ChunkDesc.GetHeight(a_RelX, a_RelZ));
+ for (int y = top; y > 0; y--)
{
if (a_ShapeColumn[y] > 0)
{