Added check in cEntity::TickBurning for whether the entity is planning to change worlds. (#3943)
This commit is contained in:
parent
cc2d719c59
commit
af6963f40f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user