diff options
author | madmaxoft <github@xoft.cz> | 2013-08-18 13:26:37 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-18 13:26:37 +0200 |
commit | 0d323563e4cc507e58ce1bb3ba632cf2310602c9 (patch) | |
tree | 0e06074b10344f81c823f4572f5a7035c68f04ff /source/Protocol/Protocol125.cpp | |
parent | cListenThread correctly closes all sockets. (diff) | |
download | cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.gz cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.bz2 cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.lz cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.xz cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.tar.zst cuberite-0d323563e4cc507e58ce1bb3ba632cf2310602c9.zip |
Diffstat (limited to 'source/Protocol/Protocol125.cpp')
-rw-r--r-- | source/Protocol/Protocol125.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp index e481bb9a7..6f79ed12c 100644 --- a/source/Protocol/Protocol125.cpp +++ b/source/Protocol/Protocol125.cpp @@ -82,7 +82,7 @@ enum PACKET_WINDOW_CLICK = 0x66, PACKET_INVENTORY_SLOT = 0x67, PACKET_INVENTORY_WHOLE = 0x68, - PACKET_INVENTORY_PROGRESS = 0x69, + PACKET_WINDOW_PROPERTY = 0x69, PACKET_CREATIVE_INVENTORY_ACTION = 0x6B, PACKET_UPDATE_SIGN = 0x82, PACKET_PLAYER_LIST_ITEM = 0xC9, @@ -491,20 +491,6 @@ void cProtocol125::SendHealth(void) -void cProtocol125::SendInventoryProgress(char a_WindowID, short a_ProgressBar, short a_Value) -{ - cCSLock Lock(m_CSPacket); - WriteByte (PACKET_INVENTORY_PROGRESS); - WriteByte (a_WindowID); - WriteShort(a_ProgressBar); - WriteShort(a_Value); - Flush(); -} - - - - - void cProtocol125::SendInventorySlot(char a_WindowID, short a_SlotNum, const cItem & a_Item) { cCSLock Lock(m_CSPacket); @@ -975,6 +961,20 @@ void cProtocol125::SendWindowOpen(char a_WindowID, char a_WindowType, const AStr +void cProtocol125::SendWindowProperty(const cWindow & a_Window, short a_Property, short a_Value) +{ + cCSLock Lock(m_CSPacket); + WriteByte (PACKET_WINDOW_PROPERTY); + WriteByte (a_Window.GetWindowID()); + WriteShort(a_Property); + WriteShort(a_Value); + Flush(); +} + + + + + AString cProtocol125::GetAuthServerID(void) { // http://wiki.vg/wiki/index.php?title=Session&oldid=2262 |