mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
Update main.rs
This commit is contained in:
parent
8db3a45729
commit
e46575a075
1 changed files with 3 additions and 3 deletions
|
@ -39,10 +39,10 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result<
|
|||
.unwrap()
|
||||
.pos()
|
||||
.clone();
|
||||
// let target_pos: BlockPos = target_pos_vec3.into();
|
||||
// bot.look_at(&target_pos_vec3);
|
||||
let target_pos: BlockPos = (&target_pos_vec3).into();
|
||||
bot.look_at(&target_pos_vec3);
|
||||
// bot.goto(BlockPosGoal::from(target_pos));
|
||||
bot.walk(WalkDirection::Forward);
|
||||
// bot.walk(WalkDirection::Forward);
|
||||
}
|
||||
}
|
||||
Event::Initialize => {
|
||||
|
|
Loading…
Add table
Reference in a new issue