aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/packet
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-26 12:32:01 +0930
committermat <git@matdoes.dev>2025-06-26 10:05:58 +0700
commitf9e4b65713bbacabcd54416a388a92b90f56ab47 (patch)
tree25d392d60836351311e9f498d40277c226c1e32c /azalea-client/src/plugins/packet
parentaf1ef9310093aa3c8dfd5054eb6d0b8c7c0d0b31 (diff)
downloadazalea-drasl-f9e4b65713bbacabcd54416a388a92b90f56ab47.tar.xz
start adding packet_order test
Diffstat (limited to 'azalea-client/src/plugins/packet')
-rw-r--r--azalea-client/src/plugins/packet/game/mod.rs17
1 files changed, 5 insertions, 12 deletions
diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs
index 1ea4db10..d9940937 100644
--- a/azalea-client/src/plugins/packet/game/mod.rs
+++ b/azalea-client/src/plugins/packet/game/mod.rs
@@ -12,7 +12,10 @@ use azalea_entity::{
indexing::{EntityIdIndex, EntityUuidIndex},
metadata::{Health, apply_metadata},
};
-use azalea_protocol::packets::{ConnectionProtocol, game::*};
+use azalea_protocol::{
+ common::movements::MoveFlags,
+ packets::{ConnectionProtocol, game::*},
+};
use azalea_world::{InstanceContainer, InstanceName, MinecraftEntityId, PartialInstance};
use bevy_ecs::{prelude::*, system::SystemState};
pub use events::*;
@@ -319,15 +322,6 @@ impl GamePacketHandler<'_> {
.entity(self.player)
.insert(LoadedBy(HashSet::from_iter(vec![self.player])));
}
-
- // send the client information that we have set
- debug!(
- "Sending client information because login: {:?}",
- client_information
- );
- commands.trigger(SendPacketEvent::new(self.player,
- azalea_protocol::packets::game::s_client_information::ServerboundClientInformation { client_information: client_information.clone() },
- ));
},
);
}
@@ -443,8 +437,7 @@ impl GamePacketHandler<'_> {
ServerboundMovePlayerPosRot {
pos: **position,
look_direction: *direction,
- // this is always false
- on_ground: false,
+ flags: MoveFlags::default(),
},
));
});