Fire effect now shown for creative and spectator mode players (#3998)
* Fire effect now shown for creative and spectator mode players Fixes #3989 * Add documentation for IsFireproof
This commit is contained in:
committed by
GitHub
parent
ed7adef1ca
commit
e33eb529ad
@@ -1180,6 +1180,13 @@ void cEntity::TickBurning(cChunk & a_Chunk)
|
||||
// Remember the current burning state:
|
||||
bool HasBeenBurning = (m_TicksLeftBurning > 0);
|
||||
|
||||
// Fireproof entities burn out on the next tick
|
||||
if (IsFireproof())
|
||||
{
|
||||
m_TicksLeftBurning = 0;
|
||||
}
|
||||
|
||||
// Fire is extinguished by rain
|
||||
if (GetWorld()->IsWeatherWetAt(POSX_TOINT, POSZ_TOINT))
|
||||
{
|
||||
if (POSY_TOINT > m_World->GetHeight(POSX_TOINT, POSZ_TOINT))
|
||||
|
||||
Reference in New Issue
Block a user