diff --git a/pumpkin/src/client/client_packet.rs b/pumpkin/src/client/client_packet.rs index 1c70b0e7c..43a8e865d 100644 --- a/pumpkin/src/client/client_packet.rs +++ b/pumpkin/src/client/client_packet.rs @@ -64,7 +64,10 @@ impl Client { } fn is_valid_player_name(name: &str) -> bool { - name.len() <= 16 && name.chars().all(|c| c > 32 as char && c < 127 as char) + name.len() <= 16 + && name + .chars() + .all(|c| c > 32 as u8 as char && c < 127 as u8 as char) } pub fn handle_login_start(&mut self, server: &mut Server, login_start: SLoginStart) {