aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-physics')
-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(),