summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Ocelot.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 19:50:09 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 19:50:09 +0200
commit76d914647cb1cf60558bb0e62f149802a4aae2e0 (patch)
treea6c0afa0ba902274db0f7983ff9501908fb10cb3 /src/Mobs/Ocelot.cpp
parentImplemented Blaze triple shots (diff)
downloadcuberite-76d914647cb1cf60558bb0e62f149802a4aae2e0.tar
cuberite-76d914647cb1cf60558bb0e62f149802a4aae2e0.tar.gz
cuberite-76d914647cb1cf60558bb0e62f149802a4aae2e0.tar.bz2
cuberite-76d914647cb1cf60558bb0e62f149802a4aae2e0.tar.lz
cuberite-76d914647cb1cf60558bb0e62f149802a4aae2e0.tar.xz
cuberite-76d914647cb1cf60558bb0e62f149802a4aae2e0.tar.zst
cuberite-76d914647cb1cf60558bb0e62f149802a4aae2e0.zip
Diffstat (limited to 'src/Mobs/Ocelot.cpp')
-rw-r--r--src/Mobs/Ocelot.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Mobs/Ocelot.cpp b/src/Mobs/Ocelot.cpp
index de776dac6..cf4356f4f 100644
--- a/src/Mobs/Ocelot.cpp
+++ b/src/Mobs/Ocelot.cpp
@@ -21,6 +21,7 @@ cOcelot::cOcelot(void) :
m_OwnerName("")
{
m_EMPersonality = PASSIVE;
+ m_BehaviorDoNothing.AttachToMonster(*this);
GetMonsterConfig("Ocelot");
}
@@ -31,6 +32,7 @@ cOcelot::cOcelot(void) :
void cOcelot::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
super::Tick(a_Dt, a_Chunk);
+
if (!IsTicking())
{
// The base class tick destroyed us