From f23592de8c9d9a44cbd63734210fc713360422f7 Mon Sep 17 00:00:00 2001 From: lukas0008 Date: Sun, 8 Sep 2024 16:48:37 +0200 Subject: [PATCH] Fixed weird ide error --- pumpkin/src/client/client_packet.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pumpkin/src/client/client_packet.rs b/pumpkin/src/client/client_packet.rs index 1c70b0e7..43a8e865 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) {