summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2021-04-21 13:07:50 +0200
committerGitHub <noreply@github.com>2021-04-21 13:07:50 +0200
commit37213eb76c15dda4104a3adb6e9d336219f747dc (patch)
tree6a82823d6d91278675d380397988b1db00b50dd3
parentDisables the weather packet for 1.13 (#5200) (diff)
downloadcuberite-37213eb76c15dda4104a3adb6e9d336219f747dc.tar
cuberite-37213eb76c15dda4104a3adb6e9d336219f747dc.tar.gz
cuberite-37213eb76c15dda4104a3adb6e9d336219f747dc.tar.bz2
cuberite-37213eb76c15dda4104a3adb6e9d336219f747dc.tar.lz
cuberite-37213eb76c15dda4104a3adb6e9d336219f747dc.tar.xz
cuberite-37213eb76c15dda4104a3adb6e9d336219f747dc.tar.zst
cuberite-37213eb76c15dda4104a3adb6e9d336219f747dc.zip
-rw-r--r--src/Entities/Entity.cpp1
-rw-r--r--src/Entities/Entity.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index bff41f48d..1d95ec56e 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -836,6 +836,7 @@ void cEntity::KilledBy(TakeDamageInfo & a_TDI)
m_World->SpawnItemPickups(Drops, GetPosX(), GetPosY(), GetPosZ());
}
+ m_TicksAlive = 0;
m_World->BroadcastEntityAnimation(*this, EntityAnimation::PawnDies);
}
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index db526045e..af80d0687 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -500,7 +500,7 @@ public:
/** Gets remaining air of a monster */
int GetAirLevel(void) const { return m_AirLevel; }
- /** Gets number of ticks this entity has existed for */
+ /** Gets number of ticks this entity has been alive for */
long int GetTicksAlive(void) const { return m_TicksAlive; }
/** Gets the invulnerable ticks from the entity */