aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot/src/main.rs2
1 files changed, 1 insertions, 1 deletions
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<dyn std::error::Error>> {
// 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);