Convert most calls to blocking GetHeight/GetBiomeAt to direct chunk accesses
* Hopefully fixes #5094
This commit is contained in:
@@ -1198,8 +1198,8 @@ void cEntity::TickBurning(cChunk & a_Chunk)
|
||||
m_TicksLeftBurning = 0;
|
||||
}
|
||||
|
||||
// Fire is extinguished by rain
|
||||
if (GetWorld()->IsWeatherWetAtXYZ(GetPosition().Floor()))
|
||||
// Fire is extinguished by rain:
|
||||
if (a_Chunk.IsWeatherWetAt(cChunkDef::AbsoluteToRelative(GetPosition().Floor(), a_Chunk.GetPos())))
|
||||
{
|
||||
m_TicksLeftBurning = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user