Able to logon simply to server again

This commit is contained in:
Kyler 2023-12-19 01:22:43 -07:00
parent 599c22128e
commit 441012afd1
1 changed files with 6 additions and 1 deletions

View File

@ -51,7 +51,12 @@ async fn handle_client(client_socket: TcpStream) {
).await;
return;
} else if handshake_packet.next_state == 2 {
handshake::write_handshake(&mut server_writer, handshake::Handshake{
protocol_version: mc_types::VERSION_PROTOCOL,
server_address: "localhost".to_string(),
server_port: 25565,
next_state: 2,
}).await;
} else {
return;
}