diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-11-26 00:03:33 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-11-26 00:03:33 +0100 |
commit | 187bdab4fa90fbfa5b1979ea529dc9c0deac89d9 (patch) | |
tree | ce15b54701666b6f5ecd9563df8b7103d88c29b0 /src/Generating/FinishGen.cpp | |
parent | Removed unnecessary #includes (diff) | |
download | cuberite-187bdab4fa90fbfa5b1979ea529dc9c0deac89d9.tar cuberite-187bdab4fa90fbfa5b1979ea529dc9c0deac89d9.tar.gz cuberite-187bdab4fa90fbfa5b1979ea529dc9c0deac89d9.tar.bz2 cuberite-187bdab4fa90fbfa5b1979ea529dc9c0deac89d9.tar.lz cuberite-187bdab4fa90fbfa5b1979ea529dc9c0deac89d9.tar.xz cuberite-187bdab4fa90fbfa5b1979ea529dc9c0deac89d9.tar.zst cuberite-187bdab4fa90fbfa5b1979ea529dc9c0deac89d9.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); |