From 051df7401e287d34de47ed653293c2a902fba239 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Sat, 14 Jul 2018 07:53:31 -0300 Subject: [PATCH] Fix click window packet --- .../protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java | 4 ++-- .../protocolsnapshotto1_12_2/packets/InventoryPackets.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java index a1f3aae58..f7070ffcb 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java @@ -496,10 +496,10 @@ public class ProtocolSnapshotTo1_12_2 extends Protocol { registerIncoming(State.PLAY, 0x05, 0x06); registerIncoming(State.PLAY, 0x06, 0x07); - registerIncoming(State.PLAY, 0x07, 0x08); + // InventoryPackets 0x07, 0x08 registerIncoming(State.PLAY, 0x08, 0x09); - // InventoryPackets 0x09 -> 0x0A + // New 0x0A - Edit book -> Plugin Message registerIncoming(State.PLAY, 0x09, 0x0B, new PacketRemapper() { @Override diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/packets/InventoryPackets.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/packets/InventoryPackets.java index 59b8d57c3..9a4721153 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/packets/InventoryPackets.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/packets/InventoryPackets.java @@ -182,7 +182,7 @@ public class InventoryPackets { */ // Click window packet - protocol.registerIncoming(State.PLAY, 0x07, 0x07, new PacketRemapper() { + protocol.registerIncoming(State.PLAY, 0x07, 0x08, new PacketRemapper() { @Override public void registerMap() { map(Type.UNSIGNED_BYTE); // 0 - Window ID