diff options
| author | mat <git@matdoes.dev> | 2026-05-07 01:42:52 -0330 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-05-07 08:05:58 -1200 |
| commit | ee7358ebc2d3a033b48b3a97af4255e1efba9ef9 (patch) | |
| tree | 7a69c0676225bab4e37b44fb398829d554708623 /azalea-physics/src/collision/mod.rs | |
| parent | a6fbdea961c2f8a788b362cbde1eab356d298e84 (diff) | |
| download | azalea-drasl-ee7358ebc2d3a033b48b3a97af4255e1efba9ef9.tar.xz | |
correct shapes for blocks with random offsets
Diffstat (limited to 'azalea-physics/src/collision/mod.rs')
| -rw-r--r-- | azalea-physics/src/collision/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-physics/src/collision/mod.rs b/azalea-physics/src/collision/mod.rs index 34311f81..6d1df961 100644 --- a/azalea-physics/src/collision/mod.rs +++ b/azalea-physics/src/collision/mod.rs @@ -3,6 +3,7 @@ mod discrete_voxel_shape; pub mod entity_collisions; mod mergers; mod shape; +mod shape_offset; pub mod world_collisions; use std::{ops::Add, sync::LazyLock}; @@ -498,7 +499,7 @@ pub fn legacy_calculate_solid(block: BlockState) -> bool { return solid; } - let shape = block.collision_shape(); + let shape = block.base_collision_shape(); if shape.is_empty() { return false; } |
