aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xazalea-chat/src/component.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs
index 86738b26..4f772e36 100755
--- a/azalea-chat/src/component.rs
+++ b/azalea-chat/src/component.rs
@@ -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()?;