Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSpring114 committed Oct 13, 2024
2 parents b57256d + 16dae42 commit a9ab3fa
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 a9ab3fa

Please sign in to comment.