diff options
author | Mattes D <github@xoft.cz> | 2014-11-20 18:05:30 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-20 18:05:30 +0100 |
commit | 1e887d138103504e9a0df4ba5a601236ae608f98 (patch) | |
tree | ec160cd48e60a5015666c6b3f0ec5bd0f1bc53d9 /src/Generating | |
parent | Generators: Unified SeaLevel into a single variable. (diff) | |
download | cuberite-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 |
Diffstat (limited to 'src/Generating')
-rw-r--r-- | src/Generating/CompoGenBiomal.cpp | 3 |
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) { |