aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/packet_handling
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-12-01 22:49:44 -0600
committermat <git@matdoes.dev>2023-12-01 22:49:44 -0600
commit45f9d276013cbfa96fbe75c20aa8709281453fe4 (patch)
treedc2d692ca40bb72d500cdae0b712eb2609a86afb /azalea-client/src/packet_handling
parentfbee81e609e0cbc1bb8aff8ae649bca4e44ae465 (diff)
downloadazalea-drasl-45f9d276013cbfa96fbe75c20aa8709281453fe4.tar.xz
disconnect fixes
Diffstat (limited to 'azalea-client/src/packet_handling')
-rw-r--r--azalea-client/src/packet_handling/configuration.rs2
-rw-r--r--azalea-client/src/packet_handling/game.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/packet_handling/configuration.rs b/azalea-client/src/packet_handling/configuration.rs
index 82016fe6..0285884e 100644
--- a/azalea-client/src/packet_handling/configuration.rs
+++ b/azalea-client/src/packet_handling/configuration.rs
@@ -104,7 +104,7 @@ pub fn process_packet_events(ecs: &mut World) {
let mut disconnect_events = system_state.get_mut(ecs);
disconnect_events.send(DisconnectEvent {
entity: player_entity,
- reason: Some(p.reason.to_ansi()),
+ reason: Some(p.reason.clone()),
});
}
ClientboundConfigurationPacket::FinishConfiguration(p) => {
diff --git a/azalea-client/src/packet_handling/game.rs b/azalea-client/src/packet_handling/game.rs
index db8da69a..cffa0d2b 100644
--- a/azalea-client/src/packet_handling/game.rs
+++ b/azalea-client/src/packet_handling/game.rs
@@ -401,7 +401,7 @@ pub fn process_packet_events(ecs: &mut World) {
let mut disconnect_events = system_state.get_mut(ecs);
disconnect_events.send(DisconnectEvent {
entity: player_entity,
- reason: Some(p.reason.to_ansi()),
+ reason: Some(p.reason.clone()),
});
}
ClientboundGamePacket::UpdateRecipes(_p) => {