aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src/lib.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-01-11 08:14:19 +0000
committermat <git@matdoes.dev>2025-01-11 08:14:19 +0000
commita5cb21f039ab2aa08b8f78a86d3924479c1bbe33 (patch)
treebe929ffe94ac684c0b21b6a56be9cae9eb4bd9cd /azalea-entity/src/lib.rs
parente03101a7b76c4fa27f2a39d1b5aeef3738d48427 (diff)
downloadazalea-drasl-a5cb21f039ab2aa08b8f78a86d3924479c1bbe33.tar.xz
codegen entity dimensions
Diffstat (limited to 'azalea-entity/src/lib.rs')
-rw-r--r--azalea-entity/src/lib.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/azalea-entity/src/lib.rs b/azalea-entity/src/lib.rs
index 1512bbd3..4c0201ce 100644
--- a/azalea-entity/src/lib.rs
+++ b/azalea-entity/src/lib.rs
@@ -449,11 +449,7 @@ impl EntityBundle {
kind: azalea_registry::EntityKind,
world_name: ResourceLocation,
) -> Self {
- // TODO: get correct entity dimensions by having them codegen'd somewhere
- let dimensions = EntityDimensions {
- width: 0.6,
- height: 1.8,
- };
+ let dimensions = EntityDimensions::from(kind);
let eye_height = dimensions.height * 0.85;
Self {