1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

fix onground

This commit is contained in:
mat 2023-09-11 23:04:37 -05:00
parent f8cca41361
commit 225e94d732

View file

@ -718,9 +718,6 @@ pub fn process_packet_events(ecs: &mut World) {
let entity = entity_id_index.get(&MinecraftEntityId(p.id));
if let Some(entity) = entity {
if let Some(mut physics) = physics {
physics.on_ground = p.on_ground;
}
let new_position = p.position;
commands.entity(entity).add(RelativeEntityUpdate {
partial_world: local_player.partial_instance.clone(),
@ -753,9 +750,6 @@ pub fn process_packet_events(ecs: &mut World) {
let entity = entity_id_index.get(&MinecraftEntityId(p.entity_id));
if let Some(entity) = entity {
if let Some(mut physics) = physics {
physics.on_ground = p.on_ground;
}
let delta = p.delta.clone();
commands.entity(entity).add(RelativeEntityUpdate {
partial_world: local_player.partial_instance.clone(),
@ -785,9 +779,6 @@ pub fn process_packet_events(ecs: &mut World) {
let entity = entity_id_index.get(&MinecraftEntityId(p.entity_id));
if let Some(entity) = entity {
if let Some(mut physics) = physics {
physics.on_ground = p.on_ground;
}
let delta = p.delta.clone();
commands.entity(entity).add(RelativeEntityUpdate {
partial_world: local_player.partial_instance.clone(),