Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-09-08 22:02:50 +02:00
Handle packet
Dieser Commit ist enthalten in:
Ursprung
36c047bfa0
Commit
7971dc797b
@ -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.
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren