From c131672870f74b10c6fce23b407058313959c91d Mon Sep 17 00:00:00 2001 From: KennyTV <28825609+KennyTV@users.noreply.github.com> Date: Thu, 3 Oct 2019 11:00:55 +0200 Subject: [PATCH] Fix --- .../us/myles/ViaVersion/api/protocol/Protocol.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/api/protocol/Protocol.java b/common/src/main/java/us/myles/ViaVersion/api/protocol/Protocol.java index fd9c853a3..73da1cce5 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/protocol/Protocol.java +++ b/common/src/main/java/us/myles/ViaVersion/api/protocol/Protocol.java @@ -126,7 +126,7 @@ public abstract class Protocol { } public void cancelIncoming(State state, int newPacketID) { - cancelOutgoing(state, -1, newPacketID); + cancelIncoming(state, -1, newPacketID); } /** @@ -163,7 +163,7 @@ public abstract class Protocol { } public void cancelOutgoing(State state, int oldPacketID, int newPacketID) { - registerIncoming(state, oldPacketID, newPacketID, new PacketRemapper() { + registerOutgoing(state, oldPacketID, newPacketID, new PacketRemapper() { @Override public void registerMap() { handler(PacketWrapper::cancel); @@ -172,12 +172,7 @@ public abstract class Protocol { } public void cancelOutgoing(State state, int oldPacketID) { - registerIncoming(state, oldPacketID, -1, new PacketRemapper() { - @Override - public void registerMap() { - handler(PacketWrapper::cancel); - } - }); + cancelOutgoing(state, oldPacketID, -1); } /**