From 421d8ce2c837e3140d8f866e63032c277b31a413 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 4 Dec 2023 23:42:49 -0600 Subject: Replace Bevy's FixedUpdate with Azalea's GameTick (#119) * replace bevy FixedUpdate with azalea GameTick * Update to Bevy 0.12.1 --- azalea/src/bot.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'azalea/src/bot.rs') diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs index 2281deaf..ccc016e6 100644 --- a/azalea/src/bot.rs +++ b/azalea/src/bot.rs @@ -13,12 +13,13 @@ use azalea_client::interact::SwingArmEvent; use azalea_client::mining::Mining; use azalea_client::TickBroadcast; use azalea_core::position::{BlockPos, Vec3}; +use azalea_core::tick::GameTick; use azalea_entity::{ clamp_look_direction, metadata::Player, EyeHeight, Jumping, LocalEntity, LookDirection, Position, }; use azalea_physics::PhysicsSet; -use bevy_app::{FixedUpdate, Update}; +use bevy_app::Update; use bevy_ecs::prelude::Event; use bevy_ecs::schedule::IntoSystemConfigs; use futures_lite::Future; @@ -41,7 +42,7 @@ impl Plugin for BotPlugin { jump_listener, ), ) - .add_systems(FixedUpdate, stop_jumping.after(PhysicsSet)); + .add_systems(GameTick, stop_jumping.after(PhysicsSet)); } } -- cgit v1.2.3