Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSpring114 committed Sep 22, 2024
1 parent 964985b commit 16dae42
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 @@ -20,7 +20,7 @@ public static IEnumerable<string> Resolve(GameJsonEntry gameJsonEntry) {
}
}

if (gameJsonEntry.Arguments.Game is null) {
if (gameJsonEntry?.Arguments?.Game is null) {
yield break;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal sealed class JvmArgumentResolver {
public static IEnumerable<string> Resolve(GameJsonEntry gameJsonEntry) {
var jvm = new List<string>();

if (gameJsonEntry.Arguments.Jvm is null) {
if (gameJsonEntry?.Arguments?.Jvm is null) {
yield return "-Djava.library.path=${natives_directory}";
yield return "-Dminecraft.launcher.brand=${launcher_name}";
yield return "-Dminecraft.launcher.version=${launcher_version}";
Expand Down

0 comments on commit 16dae42

Please sign in to comment.