diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-05-03 19:56:37 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-05-04 00:58:12 +0200 |
commit | a509cf00ef5d76d24549557192b7b43573837475 (patch) | |
tree | f8f4d92dc175b33ec2da15930041343fa52741ae /src/Protocol | |
parent | Merge pull request #1930 from SafwatHalaby/AI_Jump (diff) | |
download | cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.gz cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.bz2 cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.lz cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.xz cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.zst cuberite-a509cf00ef5d76d24549557192b7b43573837475.zip |
Diffstat (limited to 'src/Protocol')
-rw-r--r-- | src/Protocol/Protocol18x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp index 0baae00de..1fc0c53a9 100644 --- a/src/Protocol/Protocol18x.cpp +++ b/src/Protocol/Protocol18x.cpp @@ -2310,7 +2310,7 @@ void cProtocol180::HandlePacketPlayerPos(cByteBuffer & a_ByteBuffer) HANDLE_READ(a_ByteBuffer, ReadBEDouble, double, PosY); HANDLE_READ(a_ByteBuffer, ReadBEDouble, double, PosZ); HANDLE_READ(a_ByteBuffer, ReadBool, bool, IsOnGround); - m_Client->HandlePlayerPos(PosX, PosY, PosZ, PosY + 1.62, IsOnGround); + m_Client->HandlePlayerPos(PosX, PosY, PosZ, PosY + (m_Client->GetPlayer()->IsCrouched() ? 1.54 : 1.62), IsOnGround); } |