Skip to content

Commit

Permalink
Merge branch 'master' into server-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas0008 committed Sep 8, 2024
2 parents fa114e7 + 6a75617 commit 08743d1
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 @@ -66,7 +66,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_u8 as char && c < 127_u8 as char)
}

pub fn handle_login_start(&mut self, server: &Arc<Server>, login_start: SLoginStart) {
Expand Down

0 comments on commit 08743d1

Please sign in to comment.