summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorreiter <reiter@localhost>2014-08-28 00:01:01 +0200
committerreiter <reiter@localhost>2014-08-28 00:01:01 +0200
commit690e6cb6f8d0c67f3725de8398659115ab823f4c (patch)
tree3fc6aec3cdfc343847c928f50571594754467f91 /src/Mobs/Monster.cpp
parentDungeonRooms: Fixed an off-by-one error. (diff)
downloadcuberite-690e6cb6f8d0c67f3725de8398659115ab823f4c.tar
cuberite-690e6cb6f8d0c67f3725de8398659115ab823f4c.tar.gz
cuberite-690e6cb6f8d0c67f3725de8398659115ab823f4c.tar.bz2
cuberite-690e6cb6f8d0c67f3725de8398659115ab823f4c.tar.lz
cuberite-690e6cb6f8d0c67f3725de8398659115ab823f4c.tar.xz
cuberite-690e6cb6f8d0c67f3725de8398659115ab823f4c.tar.zst
cuberite-690e6cb6f8d0c67f3725de8398659115ab823f4c.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 fe8a7346f..f7ee0b0c0 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()->IsWeatherWetAt(POSX_TOINT, POSZ_TOINT) // Not raining
+ GetWorld()->IsWeatherSunnyAt(POSX_TOINT, POSZ_TOINT) // Not raining
)
{
// Burn for 100 ticks, then decide again