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

fix 'extra' parsing in FormattedText::from_nbt_compound which results in duplicated chat fragments

This commit is contained in:
mat 2024-12-23 02:01:09 +00:00
parent a477a84c6e
commit 63fef9d94f

View file

@ -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()?;