Skip to content

Commit

Permalink
Merge pull request #919 from libraryaddict/patch-2
Browse files Browse the repository at this point in the history
Fix #916 via removing explicit type call of nbt get
  • Loading branch information
retrooper committed Aug 10, 2024
2 parents 39f0dee + 9b9ae8d commit e04cd21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit e04cd21

Please sign in to comment.