Fix checksum error

This commit is contained in:
Sofia 2026-08-09 21:53:18 +03:00
parent edeb899f9c
commit 300c7b2105
2 changed files with 7 additions and 3 deletions

View File

@ -56,10 +56,15 @@ impl NetworkManager {
message: match reason {
teanet::package::CloseReason::InvalidIdentifier(ident) => {
format!(
"Checksum mismatch: {} != {}",
ident.chars().take(6).collect::<String>(),
"Checksum mismatch:\n{} != {}",
ident
.chars()
.skip("skullball@".len())
.take(6)
.collect::<String>(),
NetworkManager::identifier()
.chars()
.skip("skullball@".len())
.take(6)
.collect::<String>()
)

View File

@ -249,7 +249,6 @@ impl MainMenu {
#[func]
pub fn go_to_host_game(&mut self) {
godot_print!("what?");
self.current_menu = Menu::HostMenu;
}