From 228489dded720cea566dd0a4638b39cba2aff5ec Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 16 Feb 2025 17:10:04 +0000 Subject: use MinecraftEntityId type instead of u32 in az-protocol --- azalea-protocol/src/packets/game/c_add_entity.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'azalea-protocol/src/packets/game/c_add_entity.rs') diff --git a/azalea-protocol/src/packets/game/c_add_entity.rs b/azalea-protocol/src/packets/game/c_add_entity.rs index cf0adeb7..67615fb9 100755 --- a/azalea-protocol/src/packets/game/c_add_entity.rs +++ b/azalea-protocol/src/packets/game/c_add_entity.rs @@ -2,13 +2,14 @@ use azalea_buf::AzBuf; use azalea_core::{position::Vec3, resource_location::ResourceLocation}; use azalea_entity::{metadata::apply_default_metadata, EntityBundle}; use azalea_protocol_macros::ClientboundGamePacket; +use azalea_world::MinecraftEntityId; use uuid::Uuid; #[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] pub struct ClientboundAddEntity { - /// The id of the entity. + /// The numeric ID of the entity being added to the world. #[var] - pub id: u32, + pub id: MinecraftEntityId, pub uuid: Uuid, pub entity_type: azalea_registry::EntityKind, pub position: Vec3, -- cgit v1.2.3