From 63fef9d94fbdafdf6beec408b733915dce2c0be7 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 23 Dec 2024 02:01:09 +0000 Subject: [PATCH] fix 'extra' parsing in FormattedText::from_nbt_compound which results in duplicated chat fragments --- azalea-chat/src/component.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index 86738b26f..4f772e36e 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()?;