aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/entity.py
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-08-10 11:06:31 -1345
committermat <git@matdoes.dev>2025-08-10 14:21:34 -1030
commit827277555d44c606b16df91e1e724f3f0ab9e0a8 (patch)
treefdc3803b322f6df07c2e052251cb59eed3575a5d /codegen/lib/code/entity.py
parent5bd7a4b11a37670a093fb68e0f5fb6fe8246191e (diff)
downloadazalea-drasl-827277555d44c606b16df91e1e724f3f0ab9e0a8.tar.xz
use Vec3f32 in entity metadata to fix parsing Vector3 values
Diffstat (limited to 'codegen/lib/code/entity.py')
-rw-r--r--codegen/lib/code/entity.py4
1 files changed, 2 insertions, 2 deletions
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<EntityDataValue> 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: