From cc3e64a3151398046408a7b97c339d32700cc541 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 2 Jun 2025 19:24:39 -1300 Subject: fix collisions bugs --- azalea-entity/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'azalea-entity/src') 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), -- cgit v1.2.3