1
2
Fork 0
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:
mat 2022-11-01 22:00:44 -05:00
parent 8db3a45729
commit e46575a075

View file

@ -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 => {