diff options
author | Alexander Harkness <me@bearbin.net> | 2015-05-17 08:13:40 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2015-05-17 08:13:40 +0200 |
commit | 54b69d0bb80c2af351cbc69025c7c8b9303168db (patch) | |
tree | fea808cda35cf7f27d5bc3ae3e72e1ffac55684a | |
parent | Merge pull request #2033 from mc-server/BreakIntoDebugger (diff) | |
parent | Fixed inventory handling. (diff) | |
download | cuberite-54b69d0bb80c2af351cbc69025c7c8b9303168db.tar cuberite-54b69d0bb80c2af351cbc69025c7c8b9303168db.tar.gz cuberite-54b69d0bb80c2af351cbc69025c7c8b9303168db.tar.bz2 cuberite-54b69d0bb80c2af351cbc69025c7c8b9303168db.tar.lz cuberite-54b69d0bb80c2af351cbc69025c7c8b9303168db.tar.xz cuberite-54b69d0bb80c2af351cbc69025c7c8b9303168db.tar.zst cuberite-54b69d0bb80c2af351cbc69025c7c8b9303168db.zip |
-rw-r--r-- | src/Protocol/Protocol18x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp index 17faca27e..4612af4a5 100644 --- a/src/Protocol/Protocol18x.cpp +++ b/src/Protocol/Protocol18x.cpp @@ -51,7 +51,7 @@ Implements the 1.8.x protocol classes: /** The slot number that the client uses to indicate "outside the window". */ -static const Int16 SLOT_NUM_OUTSIDE = -1; +static const Int16 SLOT_NUM_OUTSIDE = -999; @@ -2265,7 +2265,7 @@ void cProtocol180::HandlePacketCreativeInventoryAction(cByteBuffer & a_ByteBuffe { return; } - m_Client->HandleCreativeInventory(SlotNum, Item, (SlotNum == SLOT_NUM_OUTSIDE) ? caLeftClickOutside : caLeftClick); + m_Client->HandleCreativeInventory(SlotNum, Item, (SlotNum == -1) ? caLeftClickOutside : caLeftClick); } |