Support Transfer
This commit is contained in:
1 parent
80477f9aab
commit
0ce03c0497
3 files changed
+5
-4
No files matched your search
@@ -36,7 +36,7 @@ impl Client {
|
||||
dbg!("handshake");
|
||||
self.protocol_version = handshake.protocol_version.0;
|
||||
self.connection_state = handshake.next_state;
|
||||
if self.connection_state == ConnectionState::Login {
|
||||
if self.connection_state != ConnectionState::Status {
|
||||
let protocol = self.protocol_version;
|
||||
match protocol.cmp(&(CURRENT_MC_PROTOCOL as i32)) {
|
||||
std::cmp::Ordering::Less => {
|
||||
@@ -65,7 +65,7 @@ impl Client {
|
||||
}
|
||||
|
||||
pub fn handle_login_start(&mut self, server: &mut Server, login_start: SLoginStart) {
|
||||
dbg!("login start");
|
||||
log::debug!("login start, State {:?}", self.connection_state);
|
||||
|
||||
if !Self::is_valid_player_name(&login_start.name) {
|
||||
self.kick("Invalid characters in username");
|
||||
|
||||
Reference in new issue
Block a user