summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-28 23:51:39 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-28 23:51:39 +0100
commit8ece214920cc9cbec2c04cfa046b451a2553e279 (patch)
tree1ca22b2c3e7f5ffe1ef566e254b81ebe2f0e400e /src
parentSome fixes to lilypads (diff)
downloadcuberite-8ece214920cc9cbec2c04cfa046b451a2553e279.tar
cuberite-8ece214920cc9cbec2c04cfa046b451a2553e279.tar.gz
cuberite-8ece214920cc9cbec2c04cfa046b451a2553e279.tar.bz2
cuberite-8ece214920cc9cbec2c04cfa046b451a2553e279.tar.lz
cuberite-8ece214920cc9cbec2c04cfa046b451a2553e279.tar.xz
cuberite-8ece214920cc9cbec2c04cfa046b451a2553e279.tar.zst
cuberite-8ece214920cc9cbec2c04cfa046b451a2553e279.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 957d7d575..ea961733f 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -884,7 +884,7 @@ void cChunk::ApplyWeatherToTop()
FastSetBlock(X, Height, Z, E_BLOCK_SNOW, TopMeta - 1);
}
}
- else if (cBlockInfo::IsSnowable(TopBlock))
+ else if (cBlockInfo::IsSnowable(TopBlock) && (Height + 1 < cChunkDef::Height))
{
SetBlock(X, Height + 1, Z, E_BLOCK_SNOW, 0);
}