Added the "Edit Sign" packet sent to the client placing a sign.
Fixes issue #20. The 1.6.2 client wouldn't open the sign editor UI unless it receives a special packet
This commit is contained in:
@@ -43,6 +43,7 @@ enum
|
||||
PACKET_ATTACH_ENTITY = 0x27,
|
||||
PACKET_ENTITY_PROPERTIES = 0x2c,
|
||||
PACKET_WINDOW_OPEN = 0x64,
|
||||
PACKET_TILE_EDITOR_OPEN = 0x85,
|
||||
PACKET_PLAYER_ABILITIES = 0xca,
|
||||
} ;
|
||||
|
||||
@@ -84,6 +85,22 @@ void cProtocol161::SendChat(const AString & a_Message)
|
||||
|
||||
|
||||
|
||||
|
||||
void cProtocol161::SendEditSign(int a_BlockX, int a_BlockY, int a_BlockZ)
|
||||
{
|
||||
cCSLock Lock(m_CSPacket);
|
||||
WriteByte(PACKET_TILE_EDITOR_OPEN);
|
||||
WriteByte(0);
|
||||
WriteInt(a_BlockX);
|
||||
WriteInt(a_BlockY);
|
||||
WriteInt(a_BlockZ);
|
||||
Flush();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cProtocol161::SendGameMode(eGameMode a_GameMode)
|
||||
{
|
||||
super::SendGameMode(a_GameMode);
|
||||
|
||||
Reference in New Issue
Block a user