Skip to content

Commit

Permalink
Update DefaultLaunchArgumentParser.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
laolarou726 committed May 27, 2024
1 parent b83f29e commit 1f38b1e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@ public IEnumerable<string> ParseJvmArguments()
{
foreach (var jvmArg in VersionInfo.JvmArguments)
{
yield return StringHelper.ReplaceByDic(jvmArg, jvmArgumentsDic);
var arg = jvmArg;

// Patch for PCL2
if (jvmArg?.Equals("-DFabricMcEmu= net.minecraft.client.main.Main ", StringComparison.OrdinalIgnoreCase) ?? false)
arg = "-DFabricMcEmu=net.minecraft.client.main.Main";

yield return StringHelper.ReplaceByDic(arg, jvmArgumentsDic);
}

yield break;
Expand Down

0 comments on commit 1f38b1e

Please sign in to comment.