Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
natsurainko committed Aug 28, 2024
1 parent 4370702 commit 4954791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

Expand Down

0 comments on commit 4954791

Please sign in to comment.