From 0fe233c7edfe8c34c12b5bc4d6f0a6d96251dc5f Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Sat, 16 Feb 2019 11:21:15 -0200 Subject: [PATCH] Do not register new incoming packets --- .../protocol1_11_1to1_12/packets/ChangedPacketIds1_12.java | 6 +++--- .../protocol/protocol1_12to1_12_1/Protocol1_12To1_12_1.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_11_1to1_12/packets/ChangedPacketIds1_12.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_11_1to1_12/packets/ChangedPacketIds1_12.java index 8b5bded4..17e48b30 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_11_1to1_12/packets/ChangedPacketIds1_12.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_11_1to1_12/packets/ChangedPacketIds1_12.java @@ -87,7 +87,7 @@ public class ChangedPacketIds1_12 extends Rewriter { p.registerOutgoing(State.PLAY, 0x4D, 0x4A); // Entity Properties p.registerOutgoing(State.PLAY, 0x4E, 0x4B); // Entity Effect - p.registerIncoming(State.PLAY, 0x01, -1); // Prepare Crafting Grid + // New incoming packet 0x01 - Prepare Crafting Grid p.registerIncoming(State.PLAY, 0x02, 0x01); // Tab-Complete (Serverbound) p.registerIncoming(State.PLAY, 0x03, 0x02); // Chat Message (Serverbound) // 0x04->0x03 Client Status handled in BlockItemPackets1_12.java @@ -109,9 +109,9 @@ public class ChangedPacketIds1_12 extends Rewriter { p.registerIncoming(State.PLAY, 0x14, 0x13); // Player Digging p.registerIncoming(State.PLAY, 0x15, 0x14); // Entity Action p.registerIncoming(State.PLAY, 0x16, 0x15); // Steer Vehicle - p.registerIncoming(State.PLAY, 0x17, -1); // Crafting Book Data + // New incoming packet 0x17 - Crafting Book Data p.registerIncoming(State.PLAY, 0x18, 0x16); // Resource Pack Status - p.registerIncoming(State.PLAY, 0x19, -1); // Advancement Tab + // New incoming packet 0x19 - Advancement Tab p.registerIncoming(State.PLAY, 0x1A, 0x17); // Held Item Change (Serverbound) // 0x1B -> 0x18 Creative Inventory Action handled in BlockItemPackets.java p.registerIncoming(State.PLAY, 0x1C, 0x19); // Update Sign diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_12_1/Protocol1_12To1_12_1.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_12_1/Protocol1_12To1_12_1.java index 7409d685..98fcbf8f 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_12_1/Protocol1_12To1_12_1.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_12_1/Protocol1_12To1_12_1.java @@ -96,7 +96,7 @@ public class Protocol1_12To1_12_1 extends BackwardsProtocol { registerIncoming(State.PLAY, 0xf, 0x10); registerIncoming(State.PLAY, 0x10, 0x11); registerIncoming(State.PLAY, 0x11, 0x12); - registerIncoming(State.PLAY, 0x12, -1); // No sent by client, sad :( + // New incoming 0x12 - No sent by client, sad :( } @Override