From 300c7b210506620959cba32f65e9e426a8527973 Mon Sep 17 00:00:00 2001 From: Sofia Date: Sun, 9 Aug 2026 21:53:18 +0300 Subject: [PATCH] Fix checksum error --- rust/src/net/protocol.rs | 9 +++++++-- rust/src/ui/main_menu.rs | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rust/src/net/protocol.rs b/rust/src/net/protocol.rs index 92e1ac4..ad3ea31 100644 --- a/rust/src/net/protocol.rs +++ b/rust/src/net/protocol.rs @@ -56,10 +56,15 @@ impl NetworkManager { message: match reason { teanet::package::CloseReason::InvalidIdentifier(ident) => { format!( - "Checksum mismatch: {} != {}", - ident.chars().take(6).collect::(), + "Checksum mismatch:\n{} != {}", + ident + .chars() + .skip("skullball@".len()) + .take(6) + .collect::(), NetworkManager::identifier() .chars() + .skip("skullball@".len()) .take(6) .collect::() ) diff --git a/rust/src/ui/main_menu.rs b/rust/src/ui/main_menu.rs index 9296be0..72af24b 100644 --- a/rust/src/ui/main_menu.rs +++ b/rust/src/ui/main_menu.rs @@ -249,7 +249,6 @@ impl MainMenu { #[func] pub fn go_to_host_game(&mut self) { - godot_print!("what?"); self.current_menu = Menu::HostMenu; }