Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 16:40:12 +01:00
Use boolean + string
Dieser Commit ist enthalten in:
Ursprung
6e5f9e0741
Commit
829857be7c
@ -114,14 +114,18 @@ public class PlayerPacket1_13 extends Rewriter<Protocol1_12_2To1_13> {
|
|||||||
}
|
}
|
||||||
packetWrapper.passthrough(Type.VAR_INT);
|
packetWrapper.passthrough(Type.VAR_INT);
|
||||||
packetWrapper.passthrough(Type.VAR_INT);
|
packetWrapper.passthrough(Type.VAR_INT);
|
||||||
packetWrapper.passthrough(Type.OPTIONAL_CHAT);
|
if (packetWrapper.passthrough(Type.BOOLEAN)) {
|
||||||
|
packetWrapper.passthrough(Type.STRING);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (action == 1) { // Update Game Mode
|
} else if (action == 1) { // Update Game Mode
|
||||||
packetWrapper.passthrough(Type.VAR_INT);
|
packetWrapper.passthrough(Type.VAR_INT);
|
||||||
} else if (action == 2) { // Update Ping
|
} else if (action == 2) { // Update Ping
|
||||||
packetWrapper.passthrough(Type.VAR_INT);
|
packetWrapper.passthrough(Type.VAR_INT);
|
||||||
} else if (action == 3) { // Update Display Name
|
} else if (action == 3) { // Update Display Name
|
||||||
packetWrapper.passthrough(Type.OPTIONAL_CHAT);
|
if (packetWrapper.passthrough(Type.BOOLEAN)) {
|
||||||
|
packetWrapper.passthrough(Type.STRING);
|
||||||
|
}
|
||||||
} else if (action == 4) { // Remove Player
|
} else if (action == 4) { // Remove Player
|
||||||
storage.usernames.remove(uuid);
|
storage.usernames.remove(uuid);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren