summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 14:22:50 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 14:22:50 +0200
commit01f38d883602045e84fdf98bf3395e97608d9aad (patch)
treea20b433772cc2d388a0972f6a78850a719c8378c /src/Mobs
parentMerge remote-tracking branch 'origin/master' into portals (diff)
downloadcuberite-01f38d883602045e84fdf98bf3395e97608d9aad.tar
cuberite-01f38d883602045e84fdf98bf3395e97608d9aad.tar.gz
cuberite-01f38d883602045e84fdf98bf3395e97608d9aad.tar.bz2
cuberite-01f38d883602045e84fdf98bf3395e97608d9aad.tar.lz
cuberite-01f38d883602045e84fdf98bf3395e97608d9aad.tar.xz
cuberite-01f38d883602045e84fdf98bf3395e97608d9aad.tar.zst
cuberite-01f38d883602045e84fdf98bf3395e97608d9aad.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index fa3969d5e..c25ee6b75 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -1034,7 +1034,7 @@ void cMonster::HandleDaylightBurning(cChunk & a_Chunk)
(a_Chunk.GetBlock(RelX, RelY, RelZ) != E_BLOCK_SOULSAND) && // Not on soulsand
(GetWorld()->GetTimeOfDay() < (12000 + 1000)) && // It is nighttime
!IsOnFire() && // Not already burning
- (GetWorld()->IsWeatherWet()) // Not raining
+ (IsBiomeNoDownfall(a_Chunk.GetBiomeAt(RelX, RelZ)) || GetWorld()->IsWeatherWet()) // Not raining
)
{
// Burn for 100 ticks, then decide again