diff options
| author | mat <git@matdoes.dev> | 2024-05-22 10:28:43 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-05-22 10:28:43 +0000 |
| commit | 73bcc6639bf44986a4dfaa51e859666a1b8a89f2 (patch) | |
| tree | 47f5446f14bac668c490f9803c6e28a47247f6b7 /azalea-chat | |
| parent | 729d211406c096488a5f7f3df5120393990ac282 (diff) | |
| download | azalea-drasl-73bcc6639bf44986a4dfaa51e859666a1b8a89f2.tar.xz | |
fix another edge case in FormattedText::from_nbt_tag that happens with viaversion
Diffstat (limited to 'azalea-chat')
| -rwxr-xr-x | azalea-chat/src/component.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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)?; |
