diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-09-03 13:31:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-03 13:31:27 +0200 |
commit | 90be4e7efdb455dc4bf4e150c403586a5c73d3f1 (patch) | |
tree | 4538de89307638a25566f4425e4f3b2333dd7520 /src/Mobs/CaveSpider.cpp | |
parent | Improve cPlayer::DoMoveToWorld (#3113) (diff) | |
download | cuberite-90be4e7efdb455dc4bf4e150c403586a5c73d3f1.tar cuberite-90be4e7efdb455dc4bf4e150c403586a5c73d3f1.tar.gz cuberite-90be4e7efdb455dc4bf4e150c403586a5c73d3f1.tar.bz2 cuberite-90be4e7efdb455dc4bf4e150c403586a5c73d3f1.tar.lz cuberite-90be4e7efdb455dc4bf4e150c403586a5c73d3f1.tar.xz cuberite-90be4e7efdb455dc4bf4e150c403586a5c73d3f1.tar.zst cuberite-90be4e7efdb455dc4bf4e150c403586a5c73d3f1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/CaveSpider.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Mobs/CaveSpider.cpp b/src/Mobs/CaveSpider.cpp index 2a4975126..9f2524c1b 100644 --- a/src/Mobs/CaveSpider.cpp +++ b/src/Mobs/CaveSpider.cpp @@ -19,6 +19,11 @@ cCaveSpider::cCaveSpider(void) : void cCaveSpider::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { super::Tick(a_Dt, a_Chunk); + if (!IsTicking()) + { + // The base class tick destroyed us + return; + } m_EMPersonality = (GetWorld()->GetTimeOfDay() < (12000 + 1000)) ? PASSIVE : AGGRESSIVE; } |