mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-27 04:25:12 +01:00
Fix click window packet
This commit is contained in:
parent
e8cb0f561e
commit
051df7401e
@ -496,10 +496,10 @@ public class ProtocolSnapshotTo1_12_2 extends Protocol {
|
|||||||
|
|
||||||
registerIncoming(State.PLAY, 0x05, 0x06);
|
registerIncoming(State.PLAY, 0x05, 0x06);
|
||||||
registerIncoming(State.PLAY, 0x06, 0x07);
|
registerIncoming(State.PLAY, 0x06, 0x07);
|
||||||
registerIncoming(State.PLAY, 0x07, 0x08);
|
// InventoryPackets 0x07, 0x08
|
||||||
registerIncoming(State.PLAY, 0x08, 0x09);
|
registerIncoming(State.PLAY, 0x08, 0x09);
|
||||||
|
|
||||||
// InventoryPackets 0x09 -> 0x0A
|
// InventoryPackets 0x09 -> 0x0A
|
||||||
|
|
||||||
// New 0x0A - Edit book -> Plugin Message
|
// New 0x0A - Edit book -> Plugin Message
|
||||||
registerIncoming(State.PLAY, 0x09, 0x0B, new PacketRemapper() {
|
registerIncoming(State.PLAY, 0x09, 0x0B, new PacketRemapper() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -182,7 +182,7 @@ public class InventoryPackets {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Click window packet
|
// Click window packet
|
||||||
protocol.registerIncoming(State.PLAY, 0x07, 0x07, new PacketRemapper() {
|
protocol.registerIncoming(State.PLAY, 0x07, 0x08, new PacketRemapper() {
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(Type.UNSIGNED_BYTE); // 0 - Window ID
|
map(Type.UNSIGNED_BYTE); // 0 - Window ID
|
||||||
|
Loading…
Reference in New Issue
Block a user