Improvements to blaze and ghast (#4547)

This commit is contained in:
Mat
2020-03-26 18:54:40 +01:00
committed by GitHub
parent d18e134e7e
commit 84f86a467e
6 changed files with 155 additions and 32 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ void cMonster::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
HandleDaylightBurning(*Chunk, WouldBurnAt(GetPosition(), *Chunk));
bool a_IsFollowingPath = false;
if (m_PathfinderActivated)
if (m_PathfinderActivated && (GetMobType() != mtGhast)) // Pathfinder is currently disabled for ghasts, which have their own flying mechanism
{
if (ReachedFinalDestination() || (m_LeashToPos != nullptr))
{