aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-04-20 04:03:03 +0000
committermat <git@matdoes.dev>2024-04-20 04:03:03 +0000
commit8a1e1b7bb93373e85432ce4211b6ede4eae79409 (patch)
treec2803f0a1a6c22c0e4ab0f123f662f817ed7aaff /azalea-physics/src
parent6d9d1a456951ae321089343a91d15bfa9f3087d7 (diff)
downloadazalea-drasl-8a1e1b7bb93373e85432ce4211b6ede4eae79409.tar.xz
clippy
Diffstat (limited to 'azalea-physics/src')
-rwxr-xr-xazalea-physics/src/collision/shape.rs2
-rw-r--r--azalea-physics/src/collision/world_collisions.rs2
2 files changed, 1 insertions, 3 deletions
diff --git a/azalea-physics/src/collision/shape.rs b/azalea-physics/src/collision/shape.rs
index 710074de..edcfbf24 100755
--- a/azalea-physics/src/collision/shape.rs
+++ b/azalea-physics/src/collision/shape.rs
@@ -323,7 +323,7 @@ impl Shapes {
coords: coords1.to_vec(),
}
} else {
- IndexMerger::new_indirect(&coords1, &coords2, var3, var4)
+ IndexMerger::new_indirect(coords1, coords2, var3, var4)
}
}
}
diff --git a/azalea-physics/src/collision/world_collisions.rs b/azalea-physics/src/collision/world_collisions.rs
index 4a3c2c3b..9d25e988 100644
--- a/azalea-physics/src/collision/world_collisions.rs
+++ b/azalea-physics/src/collision/world_collisions.rs
@@ -85,7 +85,6 @@ pub struct BlockCollisionsState<'a> {
pub aabb: AABB,
pub entity_shape: VoxelShape,
pub cursor: Cursor3d,
- pub only_suffocating_blocks: bool,
cached_sections: Vec<(ChunkSectionPos, azalea_world::Section)>,
cached_block_shapes: Vec<(BlockState, &'static VoxelShape)>,
@@ -112,7 +111,6 @@ impl<'a> BlockCollisionsState<'a> {
aabb,
entity_shape: VoxelShape::from(aabb),
cursor,
- only_suffocating_blocks: false,
cached_sections: Vec::new(),
cached_block_shapes: Vec::new(),