Add support for 1.17 snapshots in CurseForge requests

This commit is contained in:
comp500 2021-05-04 19:09:33 +01:00
parent 7bedd820c2
commit 3462dd7f21

View File

@ -55,7 +55,9 @@ func getCurseforgeVersion(mcVersion string) string {
return mcVersion return mcVersion
} }
if year == 20 && week >= 6 { if year == 20 && week >= 45 || year >= 21 {
return "1.17-Snapshot"
} else if year == 20 && week >= 6 {
return "1.16-Snapshot" return "1.16-Snapshot"
} else if year == 19 && week >= 34 { } else if year == 19 && week >= 34 {
return "1.15-Snapshot" return "1.15-Snapshot"