summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-26 18:54:40 +0100
committerGitHub <noreply@github.com>2020-03-26 18:54:40 +0100
commit84f86a467e7c289936571c738f9422868ecaaee6 (patch)
tree3145442b002ae6eb18589a3d9e6ebd0de27e4197 /src/Mobs/Monster.cpp
parentUpdate Core (diff)
downloadcuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar
cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.gz
cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.bz2
cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.lz
cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.xz
cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.zst
cuberite-84f86a467e7c289936571c738f9422868ecaaee6.zip
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r--src/Mobs/Monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 9a826ed21..7c57e4f2d 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -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))
{