From f5fe723b2a704da475b24a594fd59f448cf133a3 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 30 Aug 2012 09:56:59 +0000 Subject: Added a basic protocol recognizer and the base for 1.3.2 protocol. Also fixed a few type-related warnings. git-svn-id: http://mc-server.googlecode.com/svn/trunk@805 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/cClientHandle.h') diff --git a/source/cClientHandle.h b/source/cClientHandle.h index 8ef670837..0b25365df 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -83,7 +83,7 @@ public: bool IsPlaying(void) const {return (m_State == csPlaying); } void SendDisconnect(const AString & a_Reason); - void SendInventorySlot(int a_WindowID, short a_SlotNum, const cItem & a_Item); + void SendInventorySlot(char a_WindowID, short a_SlotNum, const cItem & a_Item); void SendChat(const AString & a_Message); void SendPlayerAnimation(const cPlayer & a_Player, char a_Animation); void SendEntityEquipment(const cEntity & a_Entity, short a_SlotNum, const cItem & a_Item); @@ -142,8 +142,6 @@ public: // Calls that cProtocol descendants use for handling packets: void HandlePing (void); - - void HandleUnexpectedPacket (int a_PacketType); // the default case -> kick void HandleCreativeInventory(short a_SlotNum, const cItem & a_HeldItem); void HandlePlayerPos (double a_PosX, double a_PosY, double a_PosZ, double a_Stance, bool a_IsOnGround); void HandleBlockDig (int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status); -- cgit v1.2.3