1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 23:44:38 +00:00

fix bot/main.rs

This commit is contained in:
mat 2022-12-11 13:34:36 -06:00
commit fd18cae476

View file

@ -88,8 +88,7 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result<
bot.disconnect().await?; bot.disconnect().await?;
} }
let entity = bot let entity = bot
.world .world()
.read()
.entity_by_uuid(&uuid::uuid!("6536bfed-8695-48fd-83a1-ecd24cf2a0fd")); .entity_by_uuid(&uuid::uuid!("6536bfed-8695-48fd-83a1-ecd24cf2a0fd"));
if let Some(entity) = entity { if let Some(entity) = entity {
if m.content() == "goto" { if m.content() == "goto" {