diff options
| author | mat <git@matdoes.dev> | 2024-12-27 10:33:31 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-12-27 12:35:18 +0000 |
| commit | 04036b6e4afe1e3eb59cd861a871e17ea5680f5f (patch) | |
| tree | 20eedbc21e093fc5e33bc2666ad5b07746b319c8 /azalea-physics/src/collision/world_collisions.rs | |
| parent | 6ccd44e28d29a33abb32a0d0bed466dce8d61676 (diff) | |
| download | azalea-drasl-04036b6e4afe1e3eb59cd861a871e17ea5680f5f.tar.xz | |
implement BlockState::outline_shape
Diffstat (limited to 'azalea-physics/src/collision/world_collisions.rs')
| -rw-r--r-- | azalea-physics/src/collision/world_collisions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-physics/src/collision/world_collisions.rs b/azalea-physics/src/collision/world_collisions.rs index 237dd127..36488777 100644 --- a/azalea-physics/src/collision/world_collisions.rs +++ b/azalea-physics/src/collision/world_collisions.rs @@ -47,7 +47,7 @@ pub fn get_block_collisions(world: &Instance, aabb: AABB) -> Vec<VoxelShape> { // suffocating // if it's a full block do a faster collision check - if block_state.is_shape_full() { + if block_state.is_collision_shape_full() { if !state.aabb.intersects_aabb(&AABB { min_x: item.pos.x as f64, min_y: item.pos.y as f64, @@ -186,7 +186,7 @@ impl<'a> BlockCollisionsState<'a> { } } - let shape = block_state.shape(); + let shape = block_state.collision_shape(); self.cached_block_shapes.push((block_state, shape)); shape |
