Merge branch 'Lucky4Luuk:master' into welcome/leave-notification

This commit is contained in:
Lambdax 2023-11-22 14:54:45 +01:00 committed by GitHub
commit e6f316a6c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -841,6 +841,8 @@ impl Server {
}
'O' => self.parse_vehicle_packet(client_idx, packet).await?,
'C' => {
// TODO: Separate into another runtime to avoid blocking the main one
// while we wait for a response from all the plugins
let playername = &self.clients[client_idx].info.as_ref().unwrap().username;
let packet_data = packet.data_as_string();
let contents: Vec<&str> = packet_data.split(":").collect();