From 49547918da43c6f5ad1181805990dfc005ae391c Mon Sep 17 00:00:00 2001 From: natsurainko Date: Wed, 28 Aug 2024 19:42:28 +0800 Subject: [PATCH] Fix some typos --- .../GameManagement/Instances/MinecraftInstance.cs | 2 +- .../GameManagement/Instances/MinecraftInstanceExtensions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Natsurainko.FluentCore/GameManagement/Instances/MinecraftInstance.cs b/Natsurainko.FluentCore/GameManagement/Instances/MinecraftInstance.cs index b368771..031552e 100644 --- a/Natsurainko.FluentCore/GameManagement/Instances/MinecraftInstance.cs +++ b/Natsurainko.FluentCore/GameManagement/Instances/MinecraftInstance.cs @@ -56,7 +56,7 @@ public MinecraftAssetIndex GetAssetIndex() { // Identify file paths string clientJsonPath = this is ModifiedMinecraftInstance { HasInheritance: true } instance - ? instance.InheritedMinecraftInstance.AssetIndexJsonPath + ? instance.InheritedMinecraftInstance.ClientJsonPath : ClientJsonPath; // Parse client.json diff --git a/Natsurainko.FluentCore/GameManagement/Instances/MinecraftInstanceExtensions.cs b/Natsurainko.FluentCore/GameManagement/Instances/MinecraftInstanceExtensions.cs index 4300e9f..5d8eacb 100644 --- a/Natsurainko.FluentCore/GameManagement/Instances/MinecraftInstanceExtensions.cs +++ b/Natsurainko.FluentCore/GameManagement/Instances/MinecraftInstanceExtensions.cs @@ -14,7 +14,7 @@ public static class MinecraftInstanceExtensions public static string GetSuitableJavaVersion(this MinecraftInstance instance) { if (instance is ModifiedMinecraftInstance { HasInheritance: true } inst) - return inst.GetSuitableJavaVersion(); + return inst.InheritedMinecraftInstance.GetSuitableJavaVersion(); JsonNode? majorJavaVersionNode = JsonNodeUtils.ParseFile(instance.ClientJsonPath)["javaVersion"]?["majorVersion"];