mirror of
https://github.com/speyejack/smo-multi-rs.git
synced 2025-10-05 23:52:48 +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() {
|
if self.udp_conn.is_client_udp() {
|
||||||
// Use UDP traffic
|
// Use UDP traffic
|
||||||
match packet.data {
|
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,
|
_ => self.conn.write_packet(packet).await,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user