summaryrefslogtreecommitdiffstats
path: root/source/Protocol125.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-30 11:56:59 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-30 11:56:59 +0200
commitf5fe723b2a704da475b24a594fd59f448cf133a3 (patch)
tree6965c6df44d2b042ca62034119466127fd01b5da /source/Protocol125.cpp
parentcProtocol handles the initial handshake up to player login (diff)
downloadcuberite-f5fe723b2a704da475b24a594fd59f448cf133a3.tar
cuberite-f5fe723b2a704da475b24a594fd59f448cf133a3.tar.gz
cuberite-f5fe723b2a704da475b24a594fd59f448cf133a3.tar.bz2
cuberite-f5fe723b2a704da475b24a594fd59f448cf133a3.tar.lz
cuberite-f5fe723b2a704da475b24a594fd59f448cf133a3.tar.xz
cuberite-f5fe723b2a704da475b24a594fd59f448cf133a3.tar.zst
cuberite-f5fe723b2a704da475b24a594fd59f448cf133a3.zip
Diffstat (limited to 'source/Protocol125.cpp')
-rw-r--r--source/Protocol125.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Protocol125.cpp b/source/Protocol125.cpp
index a50551c35..ce86e70c4 100644
--- a/source/Protocol125.cpp
+++ b/source/Protocol125.cpp
@@ -133,7 +133,7 @@ void cProtocol125::SendBlockChange(int a_BlockX, int a_BlockY, int a_BlockZ, BLO
cCSLock Lock(m_CSPacket);
WriteByte(PACKET_BLOCK_CHANGE);
WriteInt (a_BlockX);
- WriteByte(a_BlockY);
+ WriteByte((unsigned char)a_BlockY);
WriteInt (a_BlockZ);
WriteByte(a_BlockType);
WriteByte(a_BlockMeta);
@@ -354,7 +354,7 @@ void cProtocol125::SendInventoryProgress(char a_WindowID, short a_ProgressBar, s
-void cProtocol125::SendInventorySlot(int a_WindowID, short a_SlotNum, const cItem & a_Item)
+void cProtocol125::SendInventorySlot(char a_WindowID, short a_SlotNum, const cItem & a_Item)
{
cCSLock Lock(m_CSPacket);
WriteByte (PACKET_INVENTORY_SLOT);
@@ -716,7 +716,7 @@ void cProtocol125::SendWholeInventory(const cWindow & a_Window)
{
cCSLock Lock(m_CSPacket);
SendWholeInventory(
- a_Window.GetWindowID(),
+ (char)a_Window.GetWindowID(),
a_Window.GetNumSlots(),
a_Window.GetSlots()
);