summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-25 20:00:50 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-25 20:00:50 +0100
commit60b7f5f23d117d48f230f80371b2adf13b85a09e (patch)
treea216c83602582bf4a0a3dd844a4d5c152abc5f30 /src/Mobs
parentImplemented pickup combining (diff)
downloadcuberite-60b7f5f23d117d48f230f80371b2adf13b85a09e.tar
cuberite-60b7f5f23d117d48f230f80371b2adf13b85a09e.tar.gz
cuberite-60b7f5f23d117d48f230f80371b2adf13b85a09e.tar.bz2
cuberite-60b7f5f23d117d48f230f80371b2adf13b85a09e.tar.lz
cuberite-60b7f5f23d117d48f230f80371b2adf13b85a09e.tar.xz
cuberite-60b7f5f23d117d48f230f80371b2adf13b85a09e.tar.zst
cuberite-60b7f5f23d117d48f230f80371b2adf13b85a09e.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/AggressiveMonster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/AggressiveMonster.cpp b/src/Mobs/AggressiveMonster.cpp
index a4b3eede1..f2f0c404c 100644
--- a/src/Mobs/AggressiveMonster.cpp
+++ b/src/Mobs/AggressiveMonster.cpp
@@ -50,9 +50,9 @@ void cAggressiveMonster::InStateChasing(float a_Dt)
void cAggressiveMonster::EventSeePlayer(cEntity * a_Entity)
{
- super::EventSeePlayer(a_Entity);
if (!((cPlayer *)a_Entity)->IsGameModeCreative())
{
+ super::EventSeePlayer(a_Entity);
m_EMState = CHASING;
}
}