mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-29 05:26:23 +01:00
Handle packet
This commit is contained in:
parent
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.
|
||||
|
Loading…
Reference in New Issue
Block a user