Skip to content

Commit 63fef9d

Browse files
committed
fix 'extra' parsing in FormattedText::from_nbt_compound which results in duplicated chat fragments
1 parent a477a84 commit 63fef9d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

azalea-chat/src/component.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,7 @@ impl FormattedText {
434434
return None;
435435
}
436436
if let Some(extra) = compound.get("extra") {
437-
for c in FormattedText::from_nbt_tag(extra)? {
438-
component.append(c);
439-
}
437+
component.append(FormattedText::from_nbt_tag(extra)?);
440438
}
441439

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

0 commit comments

Comments
 (0)