diff options
| author | mat <github@matdoes.dev> | 2022-05-26 19:12:19 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-26 19:12:19 -0500 |
| commit | 0c0fec00655fd5850e2123cb6fc2da94731dd409 (patch) | |
| tree | 8b1e000486717e41d14100528ea200c2855fbe8f /azalea-protocol/src | |
| parent | 7c302b4b2937496bee20f7b50cb31af6cc4b4eeb (diff) | |
| download | azalea-drasl-0c0fec00655fd5850e2123cb6fc2da94731dd409.tar.xz | |
fix some packets
Diffstat (limited to 'azalea-protocol/src')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_add_entity_packet.rs | 13 |
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, } |
