1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
This commit is contained in:
mat 2023-12-05 11:04:36 -06:00
parent f295a46b08
commit 53d7c1aa97

View file

@ -395,7 +395,7 @@ impl simdnbt::FromNbtTag for FormattedText {
simdnbt::borrow::NbtTag::List(list) => {
let list = list.compounds()?;
let mut component = FormattedText::from_nbt_tag(
&simdnbt::borrow::NbtTag::Compound(list.get(0)?.clone()),
&simdnbt::borrow::NbtTag::Compound(list.first()?.clone()),
)?;
for i in 1..list.len() {
component.append(FormattedText::from_nbt_tag(