summaryrefslogtreecommitdiffstats
path: root/source/Protocol132.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-20 22:10:46 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-20 22:10:46 +0200
commitfdf83870925d30560ec7f853fdc19ec6c9e29155 (patch)
treedb4a9743f510da5409b91482be5d174c028ac794 /source/Protocol132.cpp
parentRefactored windows. (diff)
downloadcuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar
cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.gz
cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.bz2
cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.lz
cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.xz
cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.zst
cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol132.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/Protocol132.cpp b/source/Protocol132.cpp
index 37343e443..207266d99 100644
--- a/source/Protocol132.cpp
+++ b/source/Protocol132.cpp
@@ -572,12 +572,13 @@ void cProtocol132::WriteItem(const cItem & a_Item)
ItemType = -1;
}
- WriteShort(ItemType);
if (a_Item.IsEmpty())
{
+ WriteShort(-1);
return;
}
+ WriteShort(ItemType);
WriteByte (a_Item.m_ItemCount);
WriteShort(a_Item.m_ItemDamage);