Skip to content

Commit c8f5132

Browse files
committed
fix: Escape Markup with MarkupLineInterpolated, because we're not stupid (any longer)
1 parent 279323b commit c8f5132

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

CurseForge.Minecraft.Serverpack.Launcher/Dependencies.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System;
1+
using CurseForge.APIClient;
2+
using CurseForge.APIClient.Models.Mods;
3+
using Spectre.Console;
4+
using System;
25
using System.Collections.Generic;
36
using System.IO;
47
using System.Linq;
@@ -7,9 +10,6 @@
710
using System.Net.Http.Json;
811
using System.Text.Json;
912
using System.Threading.Tasks;
10-
using CurseForge.APIClient;
11-
using CurseForge.APIClient.Models.Mods;
12-
using Spectre.Console;
1313

1414
namespace CurseForge.Minecraft.Serverpack.Launcher
1515
{
@@ -79,7 +79,7 @@ private static async Task DownloadMinecraftLibraries(ApiClient cfApiClient, stri
7979
{
8080
var modData = await cfApiClient.GetModAsync(file.ProjectId);
8181
manualInstall.Add((modData.Data, mod.Data));
82-
AnsiConsole.MarkupLine($"[red]Could not find a download URL for the mod {modData.Data.Name} ({mod.Data.DisplayName}), needs a manual install[/]");
82+
AnsiConsole.MarkupLineInterpolated($"[red]Could not find a download URL for the mod {modData.Data.Name} ({mod.Data.DisplayName}), needs a manual install[/]");
8383
continue;
8484
}
8585

@@ -173,7 +173,7 @@ private static async Task DownloadLoaderDependencies<T>(HttpClient _client, stri
173173

174174
if (!await CheckIfEndpointExists(_client, forgeDlUrl))
175175
{
176-
AnsiConsole.MarkupLine($"[red]Could not find an installer for the version of Forge that we need ({info.NonMapped["forgeVersion"]}) for Minecraft {info.NonMapped["minecraftVersion"]}[/]");
176+
AnsiConsole.MarkupLineInterpolated($"[red]Could not find an installer for the version of Forge that we need ({info.NonMapped["forgeVersion"]}) for Minecraft {info.NonMapped["minecraftVersion"]}[/]");
177177
throw new Exception("Missing Forge installer");
178178
}
179179

CurseForge.Minecraft.Serverpack.Launcher/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
using CurseForge.APIClient;
2+
using CurseForge.APIClient.Models.Mods;
3+
using Spectre.Console;
14
using System;
25
using System.CommandLine;
36
using System.Diagnostics;
@@ -8,9 +11,6 @@
811
using System.Net.Http.Json;
912
using System.Text.Json;
1013
using System.Threading.Tasks;
11-
using CurseForge.APIClient;
12-
using CurseForge.APIClient.Models.Mods;
13-
using Spectre.Console;
1414

1515
namespace CurseForge.Minecraft.Serverpack.Launcher
1616
{

0 commit comments

Comments
 (0)