summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-25 15:05:37 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-25 15:05:37 +0100
commit40c2826a21d71dd8829a29f97fdfb36b68eaba14 (patch)
tree6536f0f2f62175a0a3fb72e6ac5297e6a24d50a2 /src
parentUsed IsGamemodeCreative() function (diff)
downloadcuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar
cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.gz
cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.bz2
cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.lz
cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.xz
cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.tar.zst
cuberite-40c2826a21d71dd8829a29f97fdfb36b68eaba14.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index a4b580b00..41c1542d3 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -249,7 +249,9 @@ void cPlayer::Tick(float a_Dt, cChunk & a_Chunk)
}
if (IsFlying())
+ {
m_LastGroundHeight = (float)GetPosY();
+ }
}