From 73bcc6639bf44986a4dfaa51e859666a1b8a89f2 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 22 May 2024 10:28:43 +0000 Subject: fix another edge case in FormattedText::from_nbt_tag that happens with viaversion --- azalea-chat/src/component.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'azalea-chat/src') diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index 508ffc8f..6916928a 100755 --- a/azalea-chat/src/component.rs +++ b/azalea-chat/src/component.rs @@ -420,6 +420,8 @@ impl simdnbt::FromNbtTag for FormattedText { // keybind text components aren't yet supported trace!("keybind text components aren't yet supported"); return None; + } else if let Some(tag) = compound.get("") { + return FormattedText::from_nbt_tag(tag); } else { let _nbt = compound.get("nbt")?; let _separator = FormattedText::parse_separator_nbt(compound)?; -- cgit v1.2.3