aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/packet_handling.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-09-14 16:48:21 -0500
committermat <git@matdoes.dev>2023-09-14 16:48:21 -0500
commit83784d5a350168edaade4620122c2c6d46bc81a2 (patch)
treee126bb4849414fff78d24c65f93376f07f44e634 /azalea-client/src/packet_handling.rs
parentdea4a656a574318fc011e0545046b0d78b0e816e (diff)
downloadazalea-drasl-83784d5a350168edaade4620122c2c6d46bc81a2.tar.xz
rename Local to LocalEntity
Diffstat (limited to 'azalea-client/src/packet_handling.rs')
-rw-r--r--azalea-client/src/packet_handling.rs15
1 files changed, 6 insertions, 9 deletions
diff --git a/azalea-client/src/packet_handling.rs b/azalea-client/src/packet_handling.rs
index c103bef4..c95cbdba 100644
--- a/azalea-client/src/packet_handling.rs
+++ b/azalea-client/src/packet_handling.rs
@@ -709,11 +709,10 @@ pub fn process_packet_events(ecs: &mut World) {
ClientboundGamePacket::TeleportEntity(p) => {
let mut system_state: SystemState<(
Commands,
- Query<(&EntityIdIndex, &LocalPlayer, Option<&mut Physics>)>,
+ Query<(&EntityIdIndex, &LocalPlayer)>,
)> = SystemState::new(ecs);
let (mut commands, mut query) = system_state.get_mut(ecs);
- let (entity_id_index, local_player, physics) =
- query.get_mut(player_entity).unwrap();
+ let (entity_id_index, local_player) = query.get_mut(player_entity).unwrap();
let entity = entity_id_index.get(&MinecraftEntityId(p.id));
@@ -741,11 +740,10 @@ pub fn process_packet_events(ecs: &mut World) {
ClientboundGamePacket::MoveEntityPos(p) => {
let mut system_state: SystemState<(
Commands,
- Query<(&EntityIdIndex, &LocalPlayer, Option<&mut Physics>)>,
+ Query<(&EntityIdIndex, &LocalPlayer)>,
)> = SystemState::new(ecs);
let (mut commands, mut query) = system_state.get_mut(ecs);
- let (entity_id_index, local_player, physics) =
- query.get_mut(player_entity).unwrap();
+ let (entity_id_index, local_player) = query.get_mut(player_entity).unwrap();
let entity = entity_id_index.get(&MinecraftEntityId(p.entity_id));
@@ -770,11 +768,10 @@ pub fn process_packet_events(ecs: &mut World) {
ClientboundGamePacket::MoveEntityPosRot(p) => {
let mut system_state: SystemState<(
Commands,
- Query<(&EntityIdIndex, &LocalPlayer, Option<&mut Physics>)>,
+ Query<(&EntityIdIndex, &LocalPlayer)>,
)> = SystemState::new(ecs);
let (mut commands, mut query) = system_state.get_mut(ecs);
- let (entity_id_index, local_player, physics) =
- query.get_mut(player_entity).unwrap();
+ let (entity_id_index, local_player) = query.get_mut(player_entity).unwrap();
let entity = entity_id_index.get(&MinecraftEntityId(p.entity_id));