You've already forked AstralRinth
Use fill v3 API for fetching paper build versions (#5063)
This commit is contained in:
committed by
GitHub
parent
7eb1b38cc7
commit
3fd6ce1b6d
@@ -315,7 +315,7 @@ const fetchLoaderVersions = async () => {
|
||||
|
||||
const fetchPaperVersions = async (mcVersion: string) => {
|
||||
try {
|
||||
const res = await $fetch(`https://api.papermc.io/v2/projects/paper/versions/${mcVersion}`)
|
||||
const res = await $fetch(`https://fill.papermc.io/v3/projects/paper/versions/${mcVersion}`)
|
||||
paperVersions.value[mcVersion] = (res as any).builds.sort((a: number, b: number) => b - a)
|
||||
return res
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user