diff options
author | madmaxoft <github@xoft.cz> | 2013-07-28 11:52:24 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-07-28 11:52:24 +0200 |
commit | d155c1cb0043c86c0e1e6b1f41d7b194ce368f24 (patch) | |
tree | 94a62dfbfdfd5c7b207838161972171ace5d63a2 /source | |
parent | Merge remote-tracking branch 'origin/master' into hunger (diff) | |
download | cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.gz cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.bz2 cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.lz cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.xz cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.tar.zst cuberite-d155c1cb0043c86c0e1e6b1f41d7b194ce368f24.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Player.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Player.cpp b/source/Player.cpp index 5609807b0..d5cfe8bcf 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -505,6 +505,10 @@ void cPlayer::KilledBy(cEntity * a_Killer) void cPlayer::Respawn(void)
{
m_Health = GetMaxHealth();
+
+ // Reset food level:
+ m_FoodLevel = 20;
+ m_FoodSaturationLevel = 5;
m_ClientHandle->SendRespawn();
|