summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index a4198c322..08cb237c3 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -925,7 +925,7 @@ void cChunk::ApplyWeatherToTop()
{
SetBlock(X, Height + 1, Z, E_BLOCK_SNOW, 0);
}
- else if ((TopBlock == E_BLOCK_WATER) || (TopBlock == E_BLOCK_STATIONARY_WATER))
+ else if (IsBlockWater(TopBlock) && (TopMeta == 0))
{
SetBlock(X, Height, Z, E_BLOCK_ICE, 0);
}