凌云 %!s(int64=2) %!d(string=hai) anos
pai
achega
a18ccf78d1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Plain Craft Launcher 2/Modules/Base/ModBase.vb

+ 2 - 2
Plain Craft Launcher 2/Modules/Base/ModBase.vb

@@ -2186,7 +2186,7 @@ NextElement:
     ''' </summary>
     Public Sub OpenWebsite(Url As String)
         Try
-            If Not Url.StartsWithF("http", True) Then Throw New Exception(Url & " 不是一个有效的网址,它必须以 http 开头!")
+            If Not Url.StartsWithF("http", True) Or Url = "minecraft://" Then Throw New Exception(Url & " 不是一个有效的网址,它必须以 http 开头!")
             Log("[System] 正在打开网页:" & Url)
             Process.Start(Url)
         Catch ex As Exception
@@ -2713,4 +2713,4 @@ Retry:
 
 #End Region
 
-End Module
+End Module