1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

Fix error

This commit is contained in:
mat 2022-06-19 00:32:53 -05:00
parent bb6b116cb8
commit 7f7b979125

View file

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