summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-11-07 22:29:41 +0100
committerworktycho <work.tycho@gmail.com>2015-11-07 22:29:41 +0100
commitf3d3c9adca80f881befcd4182cb804766d21b95a (patch)
treefd5c9ebfb65acd7da14ee09bd49ee6b9664caed1 /src/Mobs
parentMerge pull request #2609 from bibo38/slimeblock (diff)
parentOnly send creeper updates when there is a change (diff)
downloadcuberite-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.cpp9
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
{