Made cap packets use udp as well

This commit is contained in:
Jack Garrard
2022-09-05 14:01:20 -07:00
parent 00879b12d1
commit b0fa63081e

View File

@@ -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 {