diff options
author | Gargaj <gargaj@conspiracy.hu> | 2015-12-01 23:16:49 +0100 |
---|---|---|
committer | Gargaj <gargaj@conspiracy.hu> | 2015-12-08 22:34:32 +0100 |
commit | 86ea2ee50c7c3d118e25d0fac0100c5c8f04a78a (patch) | |
tree | 37e8365c3efdca71aa9ba0ae1ebd50bf2503292a | |
parent | Small spelling issues fixed (diff) | |
download | cuberite-86ea2ee50c7c3d118e25d0fac0100c5c8f04a78a.tar cuberite-86ea2ee50c7c3d118e25d0fac0100c5c8f04a78a.tar.gz cuberite-86ea2ee50c7c3d118e25d0fac0100c5c8f04a78a.tar.bz2 cuberite-86ea2ee50c7c3d118e25d0fac0100c5c8f04a78a.tar.lz cuberite-86ea2ee50c7c3d118e25d0fac0100c5c8f04a78a.tar.xz cuberite-86ea2ee50c7c3d118e25d0fac0100c5c8f04a78a.tar.zst cuberite-86ea2ee50c7c3d118e25d0fac0100c5c8f04a78a.zip |
-rw-r--r-- | src/Mobs/Creeper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Creeper.cpp b/src/Mobs/Creeper.cpp index 141f77d08..b909ab952 100644 --- a/src/Mobs/Creeper.cpp +++ b/src/Mobs/Creeper.cpp @@ -43,7 +43,7 @@ void cCreeper::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) m_ExplodingTimer += 1; } - if (m_ExplodingTimer == 30) + if ((m_ExplodingTimer == 30) && (GetHealth() > 0.0)) // only explode when not already dead { m_World->DoExplosionAt((m_bIsCharged ? 5 : 3), GetPosX(), GetPosY(), GetPosZ(), false, esMonster, this); Destroy(); // Just in case we aren't killed by the explosion |