summaryrefslogtreecommitdiffstats
path: root/source/Mobs/AggressiveMonster.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-10-29 21:45:31 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-10-29 21:45:31 +0100
commit52d956ccf345c46a605894c4962c8171ece4dd87 (patch)
treee5f273957da9d7aa5896d50adca6f4dc9b23a3a3 /source/Mobs/AggressiveMonster.cpp
parentFixed bug where creative inventory didn't work. (diff)
downloadcuberite-52d956ccf345c46a605894c4962c8171ece4dd87.tar
cuberite-52d956ccf345c46a605894c4962c8171ece4dd87.tar.gz
cuberite-52d956ccf345c46a605894c4962c8171ece4dd87.tar.bz2
cuberite-52d956ccf345c46a605894c4962c8171ece4dd87.tar.lz
cuberite-52d956ccf345c46a605894c4962c8171ece4dd87.tar.xz
cuberite-52d956ccf345c46a605894c4962c8171ece4dd87.tar.zst
cuberite-52d956ccf345c46a605894c4962c8171ece4dd87.zip
Diffstat (limited to 'source/Mobs/AggressiveMonster.cpp')
-rw-r--r--source/Mobs/AggressiveMonster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Mobs/AggressiveMonster.cpp b/source/Mobs/AggressiveMonster.cpp
index ee6252656..88bd2743a 100644
--- a/source/Mobs/AggressiveMonster.cpp
+++ b/source/Mobs/AggressiveMonster.cpp
@@ -33,7 +33,7 @@ void cAggressiveMonster::InStateChasing(float a_Dt)
if (m_Target->IsPlayer())
{
cPlayer * Player = (cPlayer *) m_Target;
- if (Player->GetGameMode() == 1)
+ if (Player->IsGameModeCreative())
{
m_EMState = IDLE;
return;