diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 19:50:09 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 19:50:09 +0200 |
commit | 76d914647cb1cf60558bb0e62f149802a4aae2e0 (patch) | |
tree | a6c0afa0ba902274db0f7983ff9501908fb10cb3 /src/Mobs/Ocelot.cpp | |
parent | Implemented Blaze triple shots (diff) | |
download | cuberite-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.cpp | 2 |
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 |