Handle older/newer Clients

This commit is contained in:
Snowiiii committed 2024-08-13 13:05:04 +02:00
1 parent 32a172f3c0
commit c5612f6ddb
4 files changed
+30 -13

No files matched your search

+2
View File
@@ -62,6 +62,7 @@ pub struct Client {
pub config: Option<PlayerConfig>,
pub brand: Option<String>,
pub protocol_version: i32,
pub connection_state: ConnectionState,
pub encrytion: bool,
pub closed: bool,
@@ -76,6 +77,7 @@ pub struct Client {
impl Client {
pub fn new(token: Rc<Token>, connection: TcpStream, address: SocketAddr) -> Self {
Self {
protocol_version: 0,
gameprofile: None,
config: None,
brand: None,