diff options
author | madmaxoft <github@xoft.cz> | 2013-07-28 11:54:37 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-07-28 11:54:37 +0200 |
commit | 0caadbb25ce9c4c3f9d51a0898af182889802784 (patch) | |
tree | 784d0c33f1ba21dc8633d4b51e54cc81fd3d4e43 | |
parent | Player food level is reset on respawn (diff) | |
download | cuberite-0caadbb25ce9c4c3f9d51a0898af182889802784.tar cuberite-0caadbb25ce9c4c3f9d51a0898af182889802784.tar.gz cuberite-0caadbb25ce9c4c3f9d51a0898af182889802784.tar.bz2 cuberite-0caadbb25ce9c4c3f9d51a0898af182889802784.tar.lz cuberite-0caadbb25ce9c4c3f9d51a0898af182889802784.tar.xz cuberite-0caadbb25ce9c4c3f9d51a0898af182889802784.tar.zst cuberite-0caadbb25ce9c4c3f9d51a0898af182889802784.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Player.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/Player.cpp b/source/Player.cpp index d5cfe8bcf..2aa041ff4 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -1323,6 +1323,7 @@ void cPlayer::ApplyFoodExhaustionFromMovement(cChunk & a_Chunk) // Calculate the distance travelled, update the last pos:
Vector3d Movement(GetPosition() - m_LastFoodPos);
+ Movement.y = 0; // Only take XZ movement into account
m_LastFoodPos = GetPosition();
// If riding anything, apply no food exhaustion
|