aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/packet_handling
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-02-01 20:35:57 +0000
committermat <git@matdoes.dev>2025-02-01 20:35:57 +0000
commit87c34e1c3355e2b950f3c6f4ae44dcdfb775bbca (patch)
treef725697c27f1959a97d48d5ed6e4a25266dcdd6b /azalea-client/src/packet_handling
parent4aa5010ea2dec8633be29b0a06c9b2233d7a6522 (diff)
downloadazalea-drasl-87c34e1c3355e2b950f3c6f4ae44dcdfb775bbca.tar.xz
add failing test_set_health_before_login test
Diffstat (limited to 'azalea-client/src/packet_handling')
-rw-r--r--azalea-client/src/packet_handling/configuration.rs10
-rw-r--r--azalea-client/src/packet_handling/game.rs2
2 files changed, 6 insertions, 6 deletions
diff --git a/azalea-client/src/packet_handling/configuration.rs b/azalea-client/src/packet_handling/configuration.rs
index 8eccebf5..9124f6aa 100644
--- a/azalea-client/src/packet_handling/configuration.rs
+++ b/azalea-client/src/packet_handling/configuration.rs
@@ -14,7 +14,7 @@ use bevy_ecs::prelude::*;
use bevy_ecs::system::SystemState;
use tracing::{debug, error, warn};
-use crate::client::InConfigurationState;
+use crate::client::InConfigState;
use crate::disconnect::DisconnectEvent;
use crate::local_player::Hunger;
use crate::packet_handling::game::KeepAliveEvent;
@@ -30,7 +30,7 @@ pub struct ConfigurationEvent {
}
pub fn send_packet_events(
- query: Query<(Entity, &RawConnection), With<InConfigurationState>>,
+ query: Query<(Entity, &RawConnection), With<InConfigState>>,
mut packet_events: ResMut<Events<ConfigurationEvent>>,
) {
// we manually clear and send the events at the beginning of each update
@@ -110,7 +110,7 @@ pub fn process_packet_events(ecs: &mut World) {
let mut raw_conn = query.get_mut(player_entity).unwrap();
raw_conn
- .write_packet(ServerboundFinishConfiguration {})
+ .write_packet(ServerboundFinishConfiguration)
.expect(
"we should be in the right state and encoding this packet shouldn't fail",
);
@@ -118,7 +118,7 @@ pub fn process_packet_events(ecs: &mut World) {
// these components are added now that we're going to be in the Game state
ecs.entity_mut(player_entity)
- .remove::<InConfigurationState>()
+ .remove::<InConfigState>()
.insert(crate::JoinedClientBundle {
physics_state: crate::PhysicsState::default(),
inventory: crate::inventory::Inventory::default(),
@@ -251,7 +251,7 @@ impl SendConfigurationEvent {
pub fn handle_send_packet_event(
mut send_packet_events: EventReader<SendConfigurationEvent>,
- mut query: Query<(&mut RawConnection, Option<&InConfigurationState>)>,
+ mut query: Query<(&mut RawConnection, Option<&InConfigState>)>,
) {
for event in send_packet_events.read() {
if let Ok((raw_conn, in_configuration_state)) = query.get_mut(event.sent_by) {
diff --git a/azalea-client/src/packet_handling/game.rs b/azalea-client/src/packet_handling/game.rs
index d715d6c6..a7326198 100644
--- a/azalea-client/src/packet_handling/game.rs
+++ b/azalea-client/src/packet_handling/game.rs
@@ -1470,7 +1470,7 @@ pub fn process_packet_events(ecs: &mut World) {
commands
.entity(player_entity)
- .insert(crate::client::InConfigurationState)
+ .insert(crate::client::InConfigState)
.remove::<crate::JoinedClientBundle>();
system_state.apply(ecs);