aboutsummaryrefslogtreecommitdiff
path: root/azalea-chat/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-05-22 10:13:22 +0000
committermat <git@matdoes.dev>2024-05-22 10:14:35 +0000
commit729d211406c096488a5f7f3df5120393990ac282 (patch)
tree9f507f4adb40d14c505764f8436b290b59591b2a /azalea-chat/src
parent892869ad1249e238eb9228d57bd9884793a9fe75 (diff)
downloadazalea-drasl-729d211406c096488a5f7f3df5120393990ac282.tar.xz
read Tool blocks as HolderSet
fixes an error with viaversion servers
Diffstat (limited to 'azalea-chat/src')
-rwxr-xr-xazalea-chat/src/component.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs
index 94d653e8..508ffc8f 100755
--- a/azalea-chat/src/component.rs
+++ b/azalea-chat/src/component.rs
@@ -468,6 +468,7 @@ impl simdnbt::FromNbtTag for FormattedText {
}
#[cfg(feature = "azalea-buf")]
+#[cfg(feature = "simdnbt")]
impl McBufReadable for FormattedText {
fn read_from(buf: &mut std::io::Cursor<&[u8]>) -> Result<Self, BufReadError> {
let nbt = simdnbt::borrow::read_optional_tag(buf)?;