left the game message fix

This commit is contained in:
MeexReay 2025-05-08 00:54:15 +03:00
parent 424b33d47c
commit a1b0da37d9

View File

@ -550,7 +550,10 @@ pub fn handle_disconnect(
}
remove_player(player.clone(), client.clone())?;
send_rainbow_message(&player, format!("{} joined the game", player_name))?;
send_rainbow_message(
&player,
format!("{} left the game", client.player_info().unwrap().name),
)?;
}
Ok(())