aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" {