Skip to content

Commit

Permalink
fix 'extra' parsing in FormattedText::from_nbt_compound which results…
Browse files Browse the repository at this point in the history
… in duplicated chat fragments
  • Loading branch information
mat-1 committed Dec 23, 2024
1 parent a477a84 commit 63fef9d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions azalea-chat/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ impl FormattedText {
return None;
}
if let Some(extra) = compound.get("extra") {
for c in FormattedText::from_nbt_tag(extra)? {
component.append(c);
}
component.append(FormattedText::from_nbt_tag(extra)?);
}

let style = Style::from_compound(compound).ok()?;
Expand Down

0 comments on commit 63fef9d

Please sign in to comment.