From be4f13c36c281f086602092098522b3f25fc0680 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 17 Feb 2024 14:43:42 -0600 Subject: upgrade deps, bevy 0.13 --- azalea/src/pathfinder/world.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'azalea/src/pathfinder') diff --git a/azalea/src/pathfinder/world.rs b/azalea/src/pathfinder/world.rs index a5a273fb..d3c94a52 100644 --- a/azalea/src/pathfinder/world.rs +++ b/azalea/src/pathfinder/world.rs @@ -157,9 +157,7 @@ impl CachedWorld { } let world = self.world_lock.read(); - let Some(chunk) = world.chunks.get(&chunk_pos) else { - return None; - }; + let chunk = world.chunks.get(&chunk_pos)?; let chunk = chunk.read(); let sections: Vec = chunk -- cgit v1.2.3