diff options
| author | mat <git@matdoes.dev> | 2024-02-17 14:43:42 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-02-17 14:43:42 -0600 |
| commit | be4f13c36c281f086602092098522b3f25fc0680 (patch) | |
| tree | 599d2de84d06d7d1c31a908a2e89499c62e0a5ca /azalea/src/pathfinder | |
| parent | 64d48897afe5bcb40931f8ef8b3594fe275751e8 (diff) | |
| download | azalea-drasl-be4f13c36c281f086602092098522b3f25fc0680.tar.xz | |
upgrade deps, bevy 0.13
Diffstat (limited to 'azalea/src/pathfinder')
| -rw-r--r-- | azalea/src/pathfinder/world.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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<azalea_world::palette::PalettedContainer> = chunk |
