From 900402eacf09c20f75e84ae2d16bd3c884db79fc Mon Sep 17 00:00:00 2001 From: YangSpring114 Date: Sun, 7 Jul 2024 09:54:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=20Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MinecraftLaunch.Test/MinecraftLaunch.Simple.csproj | 1 + MinecraftLaunch/Components/Fetcher/JavaFetcher.cs | 4 ++++ MinecraftLaunch/MinecraftLaunch.csproj | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/MinecraftLaunch.Test/MinecraftLaunch.Simple.csproj b/MinecraftLaunch.Test/MinecraftLaunch.Simple.csproj index c1a7f5c..d251f97 100644 --- a/MinecraftLaunch.Test/MinecraftLaunch.Simple.csproj +++ b/MinecraftLaunch.Test/MinecraftLaunch.Simple.csproj @@ -8,6 +8,7 @@ + diff --git a/MinecraftLaunch/Components/Fetcher/JavaFetcher.cs b/MinecraftLaunch/Components/Fetcher/JavaFetcher.cs index 48bcb40..50622c1 100644 --- a/MinecraftLaunch/Components/Fetcher/JavaFetcher.cs +++ b/MinecraftLaunch/Components/Fetcher/JavaFetcher.cs @@ -155,6 +155,10 @@ private ImmutableArray FetchWindowJava() { var drives = DriveInfo.GetDrives(); foreach (var drive in drives) { + if (!drive.IsReady) { + continue; + } + FetchJavaw(drive.Name.ToDirectoryInfo(), ref paths); } diff --git a/MinecraftLaunch/MinecraftLaunch.csproj b/MinecraftLaunch/MinecraftLaunch.csproj index 4e54b9e..efcb0c6 100644 --- a/MinecraftLaunch/MinecraftLaunch.csproj +++ b/MinecraftLaunch/MinecraftLaunch.csproj @@ -1,6 +1,6 @@  - 3.1.0-preview03 + 3.1.0-preview04