From 827277555d44c606b16df91e1e724f3f0ab9e0a8 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 10 Aug 2025 11:06:31 -1345 Subject: use Vec3f32 in entity metadata to fix parsing Vector3 values --- codegen/lib/code/entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'codegen/lib/code/entity.py') diff --git a/codegen/lib/code/entity.py b/codegen/lib/code/entity.py index 41a94991..d4b43d58 100644 --- a/codegen/lib/code/entity.py +++ b/codegen/lib/code/entity.py @@ -111,7 +111,7 @@ def generate_entity_metadata(burger_entities_data: dict, mappings: Mappings): use azalea_chat::FormattedText; use azalea_core::{ direction::Direction, - position::{BlockPos, Vec3}, + position::{BlockPos, Vec3f32}, }; use azalea_inventory::ItemStack; use azalea_registry::DataRegistry; @@ -522,7 +522,7 @@ impl From for UpdateMetadataError { elif type_name == "Quaternion": default = f"Quaternion {{ x: {float(default['x'])}, y: {float(default['y'])}, z: {float(default['z'])}, w: {float(default['w'])} }}" elif type_name == "Vector3": - default = f"Vec3 {{ x: {float(default['x'])}, y: {float(default['y'])}, z: {float(default['z'])} }}" + default = f"Vec3f32 {{ x: {float(default['x'])}, y: {float(default['y'])}, z: {float(default['z'])} }}" elif type_name == "Byte": # in 1.19.4 TextOpacity is a -1 by default if default < 0: -- cgit v1.2.3