diff options
author | Mattes D <github@xoft.cz> | 2014-11-24 21:56:25 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-24 21:56:25 +0100 |
commit | 9f4562289e4e0dfddd590f39e9f008ed8bf6da4d (patch) | |
tree | 758fac8b34ebf688986f1000cfa15a79bbebedab /src/Generating/FinishGen.cpp | |
parent | Merge pull request #1611 from mc-server/SpawnPrepare (diff) | |
parent | Added TwoHeights shape generator. (diff) | |
download | cuberite-9f4562289e4e0dfddd590f39e9f008ed8bf6da4d.tar cuberite-9f4562289e4e0dfddd590f39e9f008ed8bf6da4d.tar.gz cuberite-9f4562289e4e0dfddd590f39e9f008ed8bf6da4d.tar.bz2 cuberite-9f4562289e4e0dfddd590f39e9f008ed8bf6da4d.tar.lz cuberite-9f4562289e4e0dfddd590f39e9f008ed8bf6da4d.tar.xz cuberite-9f4562289e4e0dfddd590f39e9f008ed8bf6da4d.tar.zst cuberite-9f4562289e4e0dfddd590f39e9f008ed8bf6da4d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/FinishGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp index 42ecdf8a8..2ff3e7f67 100644 --- a/src/Generating/FinishGen.cpp +++ b/src/Generating/FinishGen.cpp @@ -411,7 +411,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); |