Skip to content

Commit

Permalink
Fixed weird ide error
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas0008 committed Sep 8, 2024
1 parent af0abcc commit f23592d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pumpkin/src/client/client_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f23592d

Please sign in to comment.