diff options
| author | mat <git@matdoes.dev> | 2025-06-02 19:24:39 -1300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-03 02:41:25 -0600 |
| commit | cc3e64a3151398046408a7b97c339d32700cc541 (patch) | |
| tree | f2ea5a27ae52b1dbb69997f61daf3a5f00369e94 /azalea-entity/src | |
| parent | 61443fa481aeb6f9b488bf9475c512554a58473d (diff) | |
| download | azalea-drasl-cc3e64a3151398046408a7b97c339d32700cc541.tar.xz | |
fix collisions bugs
Diffstat (limited to 'azalea-entity/src')
| -rw-r--r-- | azalea-entity/src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/azalea-entity/src/lib.rs b/azalea-entity/src/lib.rs index ad225400..0f33e01e 100644 --- a/azalea-entity/src/lib.rs +++ b/azalea-entity/src/lib.rs @@ -455,7 +455,12 @@ impl EntityBundle { world_name: ResourceLocation, ) -> Self { let dimensions = EntityDimensions::from(kind); - let eye_height = dimensions.height * 0.85; + let eye_height = match kind { + // TODO: codegen hardcoded eye heights, search withEyeHeight with mojmap + // also, eye height should change depending on pose (like sneaking, swimming, etc) + azalea_registry::EntityKind::Player => 1.62, + _ => dimensions.height * 0.85, + }; Self { kind: EntityKind(kind), |
