1
0
Fork 0

Added check in cEntity::TickBurning for whether the entity is planning to change worlds. (#3943)

This commit is contained in:
Lane Kolbly 2017-08-22 09:05:13 -05:00 committed by Alexander Harkness
parent cc2d719c59
commit af6963f40f
1 changed files with 6 additions and 0 deletions

View File

@ -1173,6 +1173,12 @@ void cEntity::ApplyFriction(Vector3d & a_Speed, double a_SlowdownMultiplier, flo
void cEntity::TickBurning(cChunk & a_Chunk)
{
// If we're about to change worlds, then we can't accurately determine whether we're in lava (#3939)
if (m_IsWorldChangeScheduled)
{
return;
}
// Remember the current burning state:
bool HasBeenBurning = (m_TicksLeftBurning > 0);