Skip to content

Commit

Permalink
Update ModDownload.vb
Browse files Browse the repository at this point in the history
  • Loading branch information
zkitefly committed Aug 29, 2024
1 parent b7880a0 commit 3a7dec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plain Craft Launcher 2/Modules/Minecraft/ModDownload.vb
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
If Versions.Count < 200 Then Throw New Exception("获取到的版本列表长度不足(" & Json.ToString & ")")
'从指定URL获取并添加未列出的版本
Try
Dim UnlistedJson As JObject = NetGetCodeByRequestRetry("https://zkitefly.github.io/unlisted-versions-of-minecraft/version_manifest.json", IsJson:=True)
Dim UnlistedJson As JObject = NetGetCodeByRequestRetry("https://zkitefly.github.io/nlisted-versions-of-minecraft/version_manifest.json", IsJson:=True)
' 替换 "pending" 为 "snapshot"
For Each versionuvmc As JObject In UnlistedJson("versions")
If versionuvmc("type").ToString() = "pending" OrElse versionuvmc("id").ToString().StartsWithF("2point0") AndAlso versionuvmc("type").ToString() = "release" Then
Expand Down Expand Up @@ -249,7 +249,7 @@
If Versions.Count < 200 Then Throw New Exception("获取到的版本列表长度不足(" & Json.ToString & ")")
'从指定URL获取并添加未列出的版本
Try
Dim UnlistedJson As JObject = NetGetCodeByRequestRetry("https://raw.gitcode.com/zkitefly/unlisted-versions-of-minecraft/raw/main/version_manifest.json", IsJson:=True)
Dim UnlistedJson As JObject = NetGetCodeByRequestRetry("https://raw.gitcode.com/zkitefly/nlisted-versions-of-minecraft/raw/main/version_manifest.json", IsJson:=True)
' 替换 "pending" 为 "snapshot"
For Each versionuvmc As JObject In UnlistedJson("versions")
If versionuvmc("type").ToString() = "pending" OrElse versionuvmc("id").ToString().StartsWithF("2point0") AndAlso versionuvmc("type").ToString() = "release" Then
Expand Down

0 comments on commit 3a7dec9

Please sign in to comment.