aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-entity/src')
-rw-r--r--azalea-entity/src/lib.rs7
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),