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);