Merge pull request #919 from libraryaddict/patch-2

Fix #916 via removing explicit type call of nbt get
This commit is contained in:
retrooper authored and GitHub committed 2024-08-10 17:18:35 +02:00
commit e04cd2108f
1 file changed
+1 -1
@@ -45,7 +45,7 @@ public interface IJukeboxSong extends MappedEntity, CopyableEntity<IJukeboxSong>
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();