mirror of
https://github.com/speyejack/smo-multi-rs.git
synced 2025-10-05 15:42:45 +02:00
Made cap packets use udp as well
This commit is contained in:
@@ -226,7 +226,9 @@ impl Client {
|
||||
if self.udp_conn.is_client_udp() {
|
||||
// Use UDP traffic
|
||||
match packet.data {
|
||||
PacketData::Player { .. } => self.udp_conn.write_packet(packet).await,
|
||||
PacketData::Player { .. } | PacketData::Cap { .. } => {
|
||||
self.udp_conn.write_packet(packet).await
|
||||
}
|
||||
_ => self.conn.write_packet(packet).await,
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user