aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2022-11-15 20:38:32 +0000
committerUbuntu <github@matdoes.dev>2022-11-15 20:38:32 +0000
commit614c0df0537567c75f781df7affc091a4a466226 (patch)
treeffd4b23e4692cbdd6c966d389901fbe24d0ad76b /bot
parent9f78b3f4a7229033a3f5acaad6c8fffbe24e3e75 (diff)
downloadazalea-drasl-614c0df0537567c75f781df7affc091a4a466226.tar.xz
clippy
Diffstat (limited to 'bot')
-rwxr-xr-xbot/src/main.rs5
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));