diff options
Diffstat (limited to 'bot')
| -rwxr-xr-x | bot/src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index f1398062..ce627651 100755 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -58,13 +58,12 @@ async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> Event::Chat(m) => { println!("{}", m.message().to_ansi(None)); if m.message().to_string() == "<py5> goto" { - let target_pos_vec3 = bot + let target_pos_vec3 = *(bot .dimension .read() .entity_by_uuid(&uuid::uuid!("6536bfed869548fd83a1ecd24cf2a0fd")) .unwrap() - .pos() - .clone(); + .pos()); let target_pos: BlockPos = (&target_pos_vec3).into(); // bot.look_at(&target_pos_vec3); bot.goto(BlockPosGoal::from(target_pos)); |
