mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-10-04 09:27:32 +02:00
Readd second cancelOutgoing method for VB
This commit is contained in:
parent
3adffdc438
commit
48edd01461
@ -171,6 +171,15 @@ public abstract class Protocol {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void cancelOutgoing(State state, int oldPacketID) {
|
||||||
|
registerIncoming(state, oldPacketID, -1, new PacketRemapper() {
|
||||||
|
@Override
|
||||||
|
public void registerMap() {
|
||||||
|
handler(PacketWrapper::cancel);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transform a packet using this protocol
|
* Transform a packet using this protocol
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user