summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-11-30 18:44:44 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-11-30 18:44:44 +0100
commite972c52e540ca49214d378207e2064f80bcb7983 (patch)
treee9acd73f91b069508e49bb51d24bb0e5d1f3c6fb /src/Generating/FinishGen.cpp
parentFixed a crash in cSpawnPrepare. (diff)
downloadcuberite-e972c52e540ca49214d378207e2064f80bcb7983.tar
cuberite-e972c52e540ca49214d378207e2064f80bcb7983.tar.gz
cuberite-e972c52e540ca49214d378207e2064f80bcb7983.tar.bz2
cuberite-e972c52e540ca49214d378207e2064f80bcb7983.tar.lz
cuberite-e972c52e540ca49214d378207e2064f80bcb7983.tar.xz
cuberite-e972c52e540ca49214d378207e2064f80bcb7983.tar.zst
cuberite-e972c52e540ca49214d378207e2064f80bcb7983.zip
Diffstat (limited to 'src/Generating/FinishGen.cpp')
-rw-r--r--src/Generating/FinishGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 2ff3e7f67..1e8a67dd0 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -516,7 +516,7 @@ void cFinishGenSingleTopBlock::GenFinish(cChunkDesc & a_ChunkDesc)
}
int Height = a_ChunkDesc.GetHeight(x, z);
- if (Height >= cChunkDef::Height)
+ if (Height >= cChunkDef::Height - 1)
{
// Too high up
continue;