1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

fix wrong Profile data component impl

This commit is contained in:
mat 2025-01-29 02:09:54 +00:00
parent ef25e77e52
commit befcec9b3a
3 changed files with 19 additions and 3 deletions

View file

@ -662,7 +662,7 @@ pub struct GameProfileProperty {
#[derive(Clone, PartialEq, AzBuf)]
pub struct Profile {
pub name: String,
pub name: Option<String>,
pub id: Option<Uuid>,
pub properties: Vec<GameProfileProperty>,
}

File diff suppressed because one or more lines are too long

View file

@ -18,7 +18,7 @@ mod tests {
use super::*;
#[test]
fn test_read_write_container_set_content() {
fn test_read_write_hypixel_entity_data() {
let contents = [161, 226, 1, 10, 18, 1, 20, 38, 124, 175, 198, 255];
let mut buf = Cursor::new(contents.as_slice());
let packet = ClientboundSetEntityData::azalea_read(&mut buf).unwrap();