summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-14 22:33:54 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-14 22:33:54 +0100
commita0e1e43fc187d79021b4e84e70729255f7f690e2 (patch)
tree933304dcec7bc698bf7c0f70fe8938d46c642113 /src/Generating/FinishGen.cpp
parent... in this world (diff)
parentNoise3D: Added jungles. (diff)
downloadcuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.gz
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.bz2
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.lz
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.xz
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.zst
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.zip
Diffstat (limited to 'src/Generating/FinishGen.cpp')
-rw-r--r--src/Generating/FinishGen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 18f8ee2bc..b8afac09a 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -199,6 +199,11 @@ void cFinishGenTallGrass::GenFinish(cChunkDesc & a_ChunkDesc)
// Get the top block + 1. This is the place where the grass would finaly be placed:
int y = a_ChunkDesc.GetHeight(x, z) + 1;
+
+ if (y >= 255)
+ {
+ continue;
+ }
// Check if long grass can be placed:
if (