From fdf83870925d30560ec7f853fdc19ec6c9e29155 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 20 Sep 2012 20:10:46 +0000 Subject: UI: Added shift-click support to most slot areas, except crafting. Also fixed survival inventory's crafting grid not working. git-svn-id: http://mc-server.googlecode.com/svn/trunk@868 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol132.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/Protocol132.cpp') 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); -- cgit v1.2.3