summaryrefslogtreecommitdiffstats
path: root/src/Generating/CompoGenBiomal.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-11-30 14:04:27 +0100
committerMattes D <github@xoft.cz>2016-12-01 17:45:31 +0100
commitbb78bd88b568b8d9bce561f25c930c545c316622 (patch)
tree33615f07c5a1f7043962cd56c2f09c497a4b2213 /src/Generating/CompoGenBiomal.cpp
parentUpdated the prefabs. (diff)
downloadcuberite-bb78bd88b568b8d9bce561f25c930c545c316622.tar
cuberite-bb78bd88b568b8d9bce561f25c930c545c316622.tar.gz
cuberite-bb78bd88b568b8d9bce561f25c930c545c316622.tar.bz2
cuberite-bb78bd88b568b8d9bce561f25c930c545c316622.tar.lz
cuberite-bb78bd88b568b8d9bce561f25c930c545c316622.tar.xz
cuberite-bb78bd88b568b8d9bce561f25c930c545c316622.tar.zst
cuberite-bb78bd88b568b8d9bce561f25c930c545c316622.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/CompoGenBiomal.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Generating/CompoGenBiomal.cpp b/src/Generating/CompoGenBiomal.cpp
index 0606477a1..c8e56da7d 100644
--- a/src/Generating/CompoGenBiomal.cpp
+++ b/src/Generating/CompoGenBiomal.cpp
@@ -435,7 +435,12 @@ protected:
{
bool HasHadWater = false;
int PatternIdx = 0;
- HEIGHTTYPE top = std::max(m_SeaLevel, a_ChunkDesc.GetHeight(a_RelX, a_RelZ));
+ HEIGHTTYPE top = a_ChunkDesc.GetHeight(a_RelX, a_RelZ);
+ if (top < m_SeaLevel)
+ {
+ top = m_SeaLevel;
+ a_ChunkDesc.SetHeight(a_RelX, a_RelZ, top - 1);
+ }
for (int y = top; y > 0; y--)
{
if (a_ShapeColumn[y] > 0)