From a5cb21f039ab2aa08b8f78a86d3924479c1bbe33 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 11 Jan 2025 08:14:19 +0000 Subject: codegen entity dimensions --- azalea-entity/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'azalea-entity/src/lib.rs') 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 { -- cgit v1.2.3