aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-12-11 13:34:36 -0600
committermat <github@matdoes.dev>2022-12-11 13:34:36 -0600
commitfd18cae4765fe498f007b7b8df4bc431f3a4e54e (patch)
treee8ccec4d9f7383c0e5ae3044cae4a7c9ea653b33 /bot
parentfa290b30f2e739e8575cbf3384a22d404b03fa6e (diff)
downloadazalea-drasl-fd18cae4765fe498f007b7b8df4bc431f3a4e54e.tar.xz
fix bot/main.rs
Diffstat (limited to 'bot')
-rw-r--r--bot/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs
index 9e242a0e..78d61940 100644
--- a/bot/src/main.rs
+++ b/bot/src/main.rs
@@ -88,8 +88,7 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result<
bot.disconnect().await?;
}
let entity = bot
- .world
- .read()
+ .world()
.entity_by_uuid(&uuid::uuid!("6536bfed-8695-48fd-83a1-ecd24cf2a0fd"));
if let Some(entity) = entity {
if m.content() == "goto" {