Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
Fix
Dieser Commit ist enthalten in:
Ursprung
48edd01461
Commit
c131672870
@ -126,7 +126,7 @@ public abstract class Protocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void cancelIncoming(State state, int newPacketID) {
|
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) {
|
public void cancelOutgoing(State state, int oldPacketID, int newPacketID) {
|
||||||
registerIncoming(state, oldPacketID, newPacketID, new PacketRemapper() {
|
registerOutgoing(state, oldPacketID, newPacketID, new PacketRemapper() {
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
handler(PacketWrapper::cancel);
|
handler(PacketWrapper::cancel);
|
||||||
@ -172,12 +172,7 @@ public abstract class Protocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void cancelOutgoing(State state, int oldPacketID) {
|
public void cancelOutgoing(State state, int oldPacketID) {
|
||||||
registerIncoming(state, oldPacketID, -1, new PacketRemapper() {
|
cancelOutgoing(state, oldPacketID, -1);
|
||||||
@Override
|
|
||||||
public void registerMap() {
|
|
||||||
handler(PacketWrapper::cancel);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren