aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-02 19:24:39 -1300
committermat <git@matdoes.dev>2025-06-03 02:41:25 -0600
commitcc3e64a3151398046408a7b97c339d32700cc541 (patch)
treef2ea5a27ae52b1dbb69997f61daf3a5f00369e94 /azalea-entity/src
parent61443fa481aeb6f9b488bf9475c512554a58473d (diff)
downloadazalea-drasl-cc3e64a3151398046408a7b97c339d32700cc541.tar.xz
fix collisions bugs
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),