diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-07-21 22:25:37 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-08-20 17:26:42 +0200 |
commit | de2cce9b79ab60427daa86dcd1da99db7d7ea161 (patch) | |
tree | d50a88d41bf43f0d46481782d50ab8623d287471 /src/Protocol/Protocol18x.cpp | |
parent | Merge pull request #2391 from SamJBarney/CropGrowthFix (diff) | |
download | cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.gz cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.bz2 cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.lz cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.xz cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.zst cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.zip |
Diffstat (limited to 'src/Protocol/Protocol18x.cpp')
-rw-r--r-- | src/Protocol/Protocol18x.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp index da5c451db..58cc839f0 100644 --- a/src/Protocol/Protocol18x.cpp +++ b/src/Protocol/Protocol18x.cpp @@ -1028,10 +1028,7 @@ void cProtocol180::SendPlayerMoveLook(void) cPacketizer Pkt(*this, 0x08); // Player Position And Look packet cPlayer * Player = m_Client->GetPlayer(); Pkt.WriteBEDouble(Player->GetPosX()); - - // The "+ 0.001" is there because otherwise the player falls through the block they were standing on. - Pkt.WriteBEDouble(Player->GetPosY() + 0.001); - + Pkt.WriteBEDouble(Player->GetPosY()); Pkt.WriteBEDouble(Player->GetPosZ()); Pkt.WriteBEFloat(static_cast<float>(Player->GetYaw())); Pkt.WriteBEFloat(static_cast<float>(Player->GetPitch())); |