From 7f7b979125fb03cf4f9b5d9dbcb15a836b7a7b84 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 19 Jun 2022 00:32:53 -0500 Subject: [PATCH] Fix error --- bot/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/main.rs b/bot/src/main.rs index 6b318157..10283e90 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -20,7 +20,7 @@ async fn main() -> Result<(), Box> { // TODO: have a "loaded" or "ready" event that fires when all chunks are loaded Event::Login => {} Event::Chat(_p) => { - let state = &client.state.lock()?; + let state = client.state.lock().unwrap(); let world = state.world.as_ref().unwrap(); println!("{:?}", world); // world.get_block_state(state.player.entity.pos);