summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-29 17:58:55 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-29 17:58:55 +0200
commit60a37c1370dc766c55a344090d8d26bc2e1c1c99 (patch)
tree953bf3edb21eed01e0e2da1e2375606e4c9db9eb /src/Mobs/Monster.cpp
parentCauldrons fill (diff)
downloadcuberite-60a37c1370dc766c55a344090d8d26bc2e1c1c99.tar
cuberite-60a37c1370dc766c55a344090d8d26bc2e1c1c99.tar.gz
cuberite-60a37c1370dc766c55a344090d8d26bc2e1c1c99.tar.bz2
cuberite-60a37c1370dc766c55a344090d8d26bc2e1c1c99.tar.lz
cuberite-60a37c1370dc766c55a344090d8d26bc2e1c1c99.tar.xz
cuberite-60a37c1370dc766c55a344090d8d26bc2e1c1c99.tar.zst
cuberite-60a37c1370dc766c55a344090d8d26bc2e1c1c99.zip
Diffstat (limited to 'src/Mobs/Monster.cpp')
-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 a9ca7a2fa..839d21314 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -1024,7 +1024,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()->GetWeather() != eWeather_Rain) // Not raining
+ (GetWorld()->IsWeatherWet()) // Not raining
)
{
// Burn for 100 ticks, then decide again