summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-11-10 21:55:13 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-11-10 21:55:13 +0100
commit9a50a1fe0cc641a4ec931d733702b775292a6ab6 (patch)
treeae87fdec32ad61d4e8c30bf7f68ac346fbcf0988 /src/Generating
parentAdded BiomalNoise3D shape generator. (diff)
downloadcuberite-9a50a1fe0cc641a4ec931d733702b775292a6ab6.tar
cuberite-9a50a1fe0cc641a4ec931d733702b775292a6ab6.tar.gz
cuberite-9a50a1fe0cc641a4ec931d733702b775292a6ab6.tar.bz2
cuberite-9a50a1fe0cc641a4ec931d733702b775292a6ab6.tar.lz
cuberite-9a50a1fe0cc641a4ec931d733702b775292a6ab6.tar.xz
cuberite-9a50a1fe0cc641a4ec931d733702b775292a6ab6.tar.zst
cuberite-9a50a1fe0cc641a4ec931d733702b775292a6ab6.zip
Diffstat (limited to 'src/Generating')
-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 (