From 9b9ae8d36cb6e0cddcd6d7704a5dd77b647e5bce Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 10 Aug 2024 22:47:03 +1200 Subject: [PATCH] Fix #916 --- .../packetevents/protocol/item/jukebox/IJukeboxSong.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/com/github/retrooper/packetevents/protocol/item/jukebox/IJukeboxSong.java b/api/src/main/java/com/github/retrooper/packetevents/protocol/item/jukebox/IJukeboxSong.java index 3be2946a1..2f8e4c7d1 100644 --- a/api/src/main/java/com/github/retrooper/packetevents/protocol/item/jukebox/IJukeboxSong.java +++ b/api/src/main/java/com/github/retrooper/packetevents/protocol/item/jukebox/IJukeboxSong.java @@ -45,7 +45,7 @@ static IJukeboxSong decode(NBT nbt, ClientVersion version, @Nullable TypesBuilde NBTCompound compound = (NBTCompound) nbt; Sound sound = Sound.decode(compound.getCompoundTagOrThrow("sound_event"), version); - Component description = AdventureSerializer.fromNbt(compound.getCompoundTagOrThrow("description")); + Component description = AdventureSerializer.fromNbt(compound.getTagOrThrow("description")); float length = compound.getNumberTagOrThrow("length_in_seconds").getAsFloat(); int comparator_output = compound.getNumberTagOrThrow("comparator_output").getAsInt();