aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/bot.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-21 01:34:18 -0500
committermat <git@matdoes.dev>2023-10-21 01:34:18 -0500
commit252958bb90751b0d278b1a478193b046edcfabe2 (patch)
tree6d7e4c17fe54d84c603029d6ce1f133aab4563cd /azalea/src/bot.rs
parent97ec9f7c7dcb02e7d7447a5fe877386528b8159e (diff)
downloadazalea-drasl-252958bb90751b0d278b1a478193b046edcfabe2.tar.xz
async_fn_in_trait stabilized
Diffstat (limited to 'azalea/src/bot.rs')
-rw-r--r--azalea/src/bot.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs
index 768ae767..509d0e2d 100644
--- a/azalea/src/bot.rs
+++ b/azalea/src/bot.rs
@@ -21,6 +21,7 @@ use azalea_physics::PhysicsSet;
use bevy_app::{FixedUpdate, Update};
use bevy_ecs::prelude::Event;
use bevy_ecs::schedule::IntoSystemConfigs;
+use futures_lite::Future;
use log::trace;
use std::f64::consts::PI;
@@ -82,7 +83,7 @@ pub trait BotClientExt {
/// that's necessary you'll have to do that yourself with [`look_at`].
///
/// [`look_at`]: crate::prelude::BotClientExt::look_at
- async fn mine(&mut self, position: BlockPos);
+ fn mine(&mut self, position: BlockPos) -> impl Future<Output = ()> + Send;
}
impl BotClientExt for azalea_client::Client {