Fixed Middle-Click Button in the ClickWindow-Packet.
See http://wiki.vg/Protocol#Click_Window The MiddleClick has the button 2 and not 0. Now you can max an item in an inventory in Creative mode, without inventory desync. Bugfix #2260
This commit is contained in:
parent
c0d8a4933e
commit
ec628846d2
@ -2374,7 +2374,7 @@ void cProtocol172::HandlePacketWindowClick(cByteBuffer & a_ByteBuffer)
|
|||||||
case 0x0206: Action = caNumber7; break;
|
case 0x0206: Action = caNumber7; break;
|
||||||
case 0x0207: Action = caNumber8; break;
|
case 0x0207: Action = caNumber8; break;
|
||||||
case 0x0208: Action = caNumber9; break;
|
case 0x0208: Action = caNumber9; break;
|
||||||
case 0x0300: Action = caMiddleClick; break;
|
case 0x0302: Action = caMiddleClick; break;
|
||||||
case 0x0400: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caLeftClickOutsideHoldNothing : caDropKey; break;
|
case 0x0400: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caLeftClickOutsideHoldNothing : caDropKey; break;
|
||||||
case 0x0401: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caRightClickOutsideHoldNothing : caCtrlDropKey; break;
|
case 0x0401: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caRightClickOutsideHoldNothing : caCtrlDropKey; break;
|
||||||
case 0x0500: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caLeftPaintBegin : caUnknown; break;
|
case 0x0500: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caLeftPaintBegin : caUnknown; break;
|
||||||
|
@ -2692,7 +2692,7 @@ void cProtocol180::HandlePacketWindowClick(cByteBuffer & a_ByteBuffer)
|
|||||||
case 0x0206: Action = caNumber7; break;
|
case 0x0206: Action = caNumber7; break;
|
||||||
case 0x0207: Action = caNumber8; break;
|
case 0x0207: Action = caNumber8; break;
|
||||||
case 0x0208: Action = caNumber9; break;
|
case 0x0208: Action = caNumber9; break;
|
||||||
case 0x0300: Action = caMiddleClick; break;
|
case 0x0302: Action = caMiddleClick; break;
|
||||||
case 0x0400: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caLeftClickOutsideHoldNothing : caDropKey; break;
|
case 0x0400: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caLeftClickOutsideHoldNothing : caDropKey; break;
|
||||||
case 0x0401: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caRightClickOutsideHoldNothing : caCtrlDropKey; break;
|
case 0x0401: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caRightClickOutsideHoldNothing : caCtrlDropKey; break;
|
||||||
case 0x0500: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caLeftPaintBegin : caUnknown; break;
|
case 0x0500: Action = (SlotNum == SLOT_NUM_OUTSIDE) ? caLeftPaintBegin : caUnknown; break;
|
||||||
|
Loading…
Reference in New Issue
Block a user