Skip to content

Commit

Permalink
Fix paper version logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jul 18, 2024
1 parent b8b90b6 commit d2c4d74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ abstract class JavadocLinksExtension @Inject constructor(providers: ProviderFact
}

override fun link(defaultProvider: String, id: ModuleComponentIdentifier): String {
val ver = id.version.split('.').take(2).joinToString(".")
val ver = id.version.split('.', '-').take(2).joinToString(".")
return "https://jd.papermc.io/paper/$ver/"
}
}
Expand Down

0 comments on commit d2c4d74

Please sign in to comment.