aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs b/azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs
index 9afd151b..8a8a713e 100644
--- a/azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs
@@ -4,9 +4,9 @@ use uuid::Uuid;
#[derive(Clone, Debug, McBuf, GamePacket)]
pub struct ClientboundAddEntityPacket {
#[var]
- pub id: i32,
+ pub id: u32,
pub uuid: Uuid,
- // TODO: have an entity type struct
+ // TODO: have an entity type enum/struct
#[var]
pub entity_type: i32,
pub x: f64,
@@ -14,9 +14,10 @@ pub struct ClientboundAddEntityPacket {
pub z: f64,
pub x_rot: i8,
pub y_rot: i8,
- // pub y_head_rot: i8,
+ pub y_head_rot: i8,
+ #[var]
pub data: i32,
- pub x_vel: u16,
- pub y_vel: u16,
- pub z_vel: u16,
+ pub x_vel: i16,
+ pub y_vel: i16,
+ pub z_vel: i16,
}