1
0

Fixed food drain bugs

This commit is contained in:
Tiger Wang
2015-07-21 21:25:37 +01:00
parent b5ed23d2a6
commit de2cce9b79
8 changed files with 162 additions and 317 deletions

View File

@@ -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()));