From 7971dc797bae2e78d199b5a366c95c9c9e624bb4 Mon Sep 17 00:00:00 2001 From: Myles Date: Wed, 17 May 2017 18:14:47 +0100 Subject: [PATCH] Handle packet --- .../ProtocolSnapshotTo1_11_1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_11_1/ProtocolSnapshotTo1_11_1.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_11_1/ProtocolSnapshotTo1_11_1.java index 400b70abd..0768085f4 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_11_1/ProtocolSnapshotTo1_11_1.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_11_1/ProtocolSnapshotTo1_11_1.java @@ -171,6 +171,18 @@ public class ProtocolSnapshotTo1_11_1 extends Protocol { registerIncoming(State.PLAY, 0x1c, 0x1e); registerIncoming(State.PLAY, 0x1d, 0x1f); // New packet at 0x20 + registerIncoming(State.PLAY, 0x20, 0x20, new PacketRemapper() { + @Override + public void registerMap() { + handler(new PacketHandler() { + + @Override + public void handle(PacketWrapper wrapper) throws Exception { + wrapper.cancel(); + } + }); + } + }); } private int getNewSoundId(int id) { //TODO Make it better, suggestions are welcome. It's ugly and hardcoded now.