diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-12-04 23:42:49 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-04 23:42:49 -0600 |
| commit | 421d8ce2c837e3140d8f866e63032c277b31a413 (patch) | |
| tree | d5f06fbcd02c24c6b40edd22cbdfda4d6ed6a39f /azalea-client/src/movement.rs | |
| parent | da4afa8ae3afec4cd59b9a19ae1e04818f1763a7 (diff) | |
| download | azalea-drasl-421d8ce2c837e3140d8f866e63032c277b31a413.tar.xz | |
Replace Bevy's FixedUpdate with Azalea's GameTick (#119)
* replace bevy FixedUpdate with azalea GameTick
* Update to Bevy 0.12.1
Diffstat (limited to 'azalea-client/src/movement.rs')
| -rw-r--r-- | azalea-client/src/movement.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-client/src/movement.rs b/azalea-client/src/movement.rs index 58fe1ff8..eb742a3c 100644 --- a/azalea-client/src/movement.rs +++ b/azalea-client/src/movement.rs @@ -1,6 +1,7 @@ use crate::client::Client; use crate::packet_handling::game::SendPacketEvent; use azalea_core::position::Vec3; +use azalea_core::tick::GameTick; use azalea_entity::{metadata::Sprinting, Attributes, Jumping}; use azalea_entity::{InLoadedChunk, LastSentPosition, LookDirection, Physics, Position}; use azalea_physics::{ai_step, PhysicsSet}; @@ -12,7 +13,7 @@ use azalea_protocol::packets::game::{ serverbound_move_player_status_only_packet::ServerboundMovePlayerStatusOnlyPacket, }; use azalea_world::{MinecraftEntityId, MoveEntityError}; -use bevy_app::{App, FixedUpdate, Plugin, Update}; +use bevy_app::{App, Plugin, Update}; use bevy_ecs::prelude::{Event, EventWriter}; use bevy_ecs::schedule::SystemSet; use bevy_ecs::{ @@ -54,7 +55,7 @@ impl Plugin for PlayerMovePlugin { .in_set(MoveEventsSet), ) .add_systems( - FixedUpdate, + GameTick, ( (tick_controls, local_player_ai_step) .chain() |
