mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-26 12:55:46 +01:00
1.16 pre4
This commit is contained in:
parent
615cd40cae
commit
166b4314fd
@ -185,6 +185,20 @@ public class Protocol1_15_2To1_16 extends BackwardsProtocol<ClientboundPackets1_
|
||||
}
|
||||
});
|
||||
|
||||
registerIncoming(ServerboundPackets1_14.PLAYER_ABILITIES, new PacketRemapper() {
|
||||
@Override
|
||||
public void registerMap() {
|
||||
handler(wrapper -> {
|
||||
byte flags = wrapper.read(Type.BYTE);
|
||||
flags &= 2; // Only take the isFlying value (everything else has been removed and wasn't used anyways)
|
||||
wrapper.write(Type.BYTE, flags);
|
||||
|
||||
wrapper.read(Type.FLOAT);
|
||||
wrapper.read(Type.FLOAT);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
cancelIncoming(ServerboundPackets1_14.UPDATE_JIGSAW_BLOCK);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user