This commit is contained in:
KennyTV 2019-10-03 11:00:55 +02:00
parent 48edd01461
commit c131672870

View File

@ -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);
}
/**