Merge pull request #919 from libraryaddict/patch-2
Fix #916 via removing explicit type call of nbt get
This commit is contained in:
1 file changed
+1
-1
+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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user