Permalink
Browse files

Fixed mob burning.

Fixes #1298
  • Loading branch information...
reiter
reiter committed Aug 27, 2014
1 parent e54c789 commit 690e6cb6f8d0c67f3725de8398659115ab823f4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Mobs/Monster.cpp
View
@@ -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

3 comments on commit 690e6cb

@Howaner

This comment has been minimized.

Show comment
Hide comment
@Howaner

Howaner Aug 27, 2014

Contributor

What? reiter authored this?
I'm howaner ...

Contributor

Howaner replied Aug 27, 2014

What? reiter authored this?
I'm howaner ...

@tigerw

This comment has been minimized.

Show comment
Hide comment
@tigerw

tigerw Aug 27, 2014

Member

Your alter ego authored it. You merely share that memory.

Member

tigerw replied Aug 27, 2014

Your alter ego authored it. You merely share that memory.

@madmaxoft

This comment has been minimized.

Show comment
Hide comment
@madmaxoft

madmaxoft Aug 28, 2014

Member

I believe GitHub lets you add aliases under which you're committing, so add this one for the commit to be attributed to you.

Member

madmaxoft replied Aug 28, 2014

I believe GitHub lets you add aliases under which you're committing, so add this one for the commit to be attributed to you.

Please sign in to comment.