ProtoProxy: Fixed parsing of the PACKET_PLAYER_ABILITIES packet.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@955 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
dfce9595e9
commit
7bca7f3cb9
@ -859,12 +859,13 @@ bool cConnection::HandleClientPing(void)
|
|||||||
|
|
||||||
bool cConnection::HandleClientPlayerAbilities(void)
|
bool cConnection::HandleClientPlayerAbilities(void)
|
||||||
{
|
{
|
||||||
HANDLE_CLIENT_PACKET_READ(ReadChar, char, IsInvulnerable);
|
HANDLE_CLIENT_PACKET_READ(ReadChar, char, Flags);
|
||||||
HANDLE_CLIENT_PACKET_READ(ReadChar, char, IsFlying);
|
HANDLE_CLIENT_PACKET_READ(ReadByte, Byte, FlyingSpeed);
|
||||||
HANDLE_CLIENT_PACKET_READ(ReadChar, char, CanFly);
|
HANDLE_CLIENT_PACKET_READ(ReadByte, Byte, WalkingSpeed);
|
||||||
HANDLE_CLIENT_PACKET_READ(ReadChar, char, IsInstaMine);
|
|
||||||
Log("Receives a PACKET_PLAYER_ABILITIES from the client:");
|
Log("Receives a PACKET_PLAYER_ABILITIES from the client:");
|
||||||
Log(" Flags = %d, %d, %d, %d", IsInvulnerable, IsFlying, CanFly, IsInstaMine);
|
Log(" Flags = %d (0x%x)", Flags, Flags);
|
||||||
|
Log(" FlyingSpeed = %d", FlyingSpeed);
|
||||||
|
Log(" WalkingSpeed = %d", WalkingSpeed);
|
||||||
COPY_TO_SERVER();
|
COPY_TO_SERVER();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user