summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-15 20:24:15 +0100
committerMattes D <github@xoft.cz>2014-11-15 20:24:15 +0100
commitb0bcd75732bef60409ac1390cf3fbe5cd89c6634 (patch)
treeae2de93b881ade7c0a1ef7094f7280f35593fea0 /src/Generating
parentChunkDesc: Fixed comment about indexing. (diff)
downloadcuberite-b0bcd75732bef60409ac1390cf3fbe5cd89c6634.tar
cuberite-b0bcd75732bef60409ac1390cf3fbe5cd89c6634.tar.gz
cuberite-b0bcd75732bef60409ac1390cf3fbe5cd89c6634.tar.bz2
cuberite-b0bcd75732bef60409ac1390cf3fbe5cd89c6634.tar.lz
cuberite-b0bcd75732bef60409ac1390cf3fbe5cd89c6634.tar.xz
cuberite-b0bcd75732bef60409ac1390cf3fbe5cd89c6634.tar.zst
cuberite-b0bcd75732bef60409ac1390cf3fbe5cd89c6634.zip
Diffstat (limited to 'src/Generating')
-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 b8afac09a..f67d59998 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -412,7 +412,7 @@ void cFinishGenSnow::GenFinish(cChunkDesc & a_ChunkDesc)
case biFrozenOcean:
{
int Height = a_ChunkDesc.GetHeight(x, z);
- if (cBlockInfo::IsSnowable(a_ChunkDesc.GetBlockType(x, Height, z)))
+ if (cBlockInfo::IsSnowable(a_ChunkDesc.GetBlockType(x, Height, z)) && (Height < cChunkDef::Height - 1))
{
a_ChunkDesc.SetBlockType(x, Height + 1, z, E_BLOCK_SNOW);
a_ChunkDesc.SetHeight(x, z, Height + 1);