Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-09-16 17:31:21 +02:00
1.16 pre4
Dieser Commit ist enthalten in:
Ursprung
615cd40cae
Commit
166b4314fd
@ -167,7 +167,7 @@ public class Protocol1_15_2To1_16 extends BackwardsProtocol<ClientboundPackets1_
|
|||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
handler(wrapper -> {
|
handler(wrapper -> {
|
||||||
wrapper.passthrough(Type.VAR_INT); // Entity Id
|
wrapper.passthrough(Type.VAR_INT); // Entity Id
|
||||||
int action = wrapper.passthrough(Type.VAR_INT);
|
int action = wrapper.passthrough(Type.VAR_INT);
|
||||||
if (action == 0 || action == 2) {
|
if (action == 0 || action == 2) {
|
||||||
if (action == 2) {
|
if (action == 2) {
|
||||||
// Location
|
// Location
|
||||||
@ -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);
|
cancelIncoming(ServerboundPackets1_14.UPDATE_JIGSAW_BLOCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren