Skip to content

Commit

Permalink
Fix lavalyrics compat
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Mar 11, 2024
1 parent 5a35429 commit cb986a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
lavalink-api = "4.0.0"
lavalink-server = "4.0.0"
lavalyrics = "0932f77"
lavalyrics = "01bf4e7"
lavaplayer = "2.1.0"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ private Lyrics attemptGeniusLoad(AudioTrack track) {
.map((it) -> {
if (it instanceof TextLyrics tl) {
return new BasicAudioLyrics(
tl.source(),
tl.source(),
tl.text(),
List.of()
);
} else if (it instanceof TimedLyrics tl) {
return new BasicAudioLyrics(
tl.source(),
tl.source(),
null,
tl.lines()
Expand Down

0 comments on commit cb986a7

Please sign in to comment.