소스 검색

Allow Preview

墨渊 1 년 전
부모
커밋
8ba86ffed8
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Plain Craft Launcher 2/Modules/Base/ModBase.vb

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

@@ -2539,7 +2539,7 @@ NextElement:
     ''' </summary>
     Public Sub OpenWebsite(Url As String)
         Try
-            If Not Url.StartsWithF("http", True) AndAlso Not Url.StartsWithF("minecraft://", True) Then
+            If Not Url.StartsWithF("http", True) AndAlso Not Url.StartsWithF("minecraft://", True) AndAlso Not Url.StartsWithF("minecraft-preview://", True) Then
                 Throw New Exception(Url & " 不是一个有效的网址,它必须以 http 开头!")
             End If
             Log("[System] 正在打开网页:" & Url)