We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f295a46 commit 53d7c1aCopy full SHA for 53d7c1a
azalea-chat/src/component.rs
@@ -395,7 +395,7 @@ impl simdnbt::FromNbtTag for FormattedText {
395
simdnbt::borrow::NbtTag::List(list) => {
396
let list = list.compounds()?;
397
let mut component = FormattedText::from_nbt_tag(
398
- &simdnbt::borrow::NbtTag::Compound(list.get(0)?.clone()),
+ &simdnbt::borrow::NbtTag::Compound(list.first()?.clone()),
399
)?;
400
for i in 1..list.len() {
401
component.append(FormattedText::from_nbt_tag(
0 commit comments