diff options
author | worktycho <work.tycho@gmail.com> | 2015-11-07 22:29:41 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-11-07 22:29:41 +0100 |
commit | f3d3c9adca80f881befcd4182cb804766d21b95a (patch) | |
tree | fd5c9ebfb65acd7da14ee09bd49ee6b9664caed1 | |
parent | Merge pull request #2609 from bibo38/slimeblock (diff) | |
parent | Only send creeper updates when there is a change (diff) | |
download | cuberite-f3d3c9adca80f881befcd4182cb804766d21b95a.tar cuberite-f3d3c9adca80f881befcd4182cb804766d21b95a.tar.gz cuberite-f3d3c9adca80f881befcd4182cb804766d21b95a.tar.bz2 cuberite-f3d3c9adca80f881befcd4182cb804766d21b95a.tar.lz cuberite-f3d3c9adca80f881befcd4182cb804766d21b95a.tar.xz cuberite-f3d3c9adca80f881befcd4182cb804766d21b95a.tar.zst cuberite-f3d3c9adca80f881befcd4182cb804766d21b95a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Creeper.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Mobs/Creeper.cpp b/src/Mobs/Creeper.cpp index 30bd41f13..353d0f009 100644 --- a/src/Mobs/Creeper.cpp +++ b/src/Mobs/Creeper.cpp @@ -29,9 +29,12 @@ void cCreeper::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) if (!TargetIsInRange() && !m_BurnedWithFlintAndSteel) { - m_ExplodingTimer = 0; - m_bIsBlowing = false; - m_World->BroadcastEntityMetadata(*this); + if (m_bIsBlowing) + { + m_ExplodingTimer = 0; + m_bIsBlowing = false; + m_World->BroadcastEntityMetadata(*this); + } } else { |