mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fixed not running on windows.
This commit is contained in:
parent
05c4661553
commit
6b98183093
1 changed files with 7 additions and 2 deletions
|
|
@ -94,8 +94,13 @@ namespace MinecraftClient.Protocol
|
|||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
link = link.Replace("&", "^&");
|
||||
Process.Start(new ProcessStartInfo(link) { UseShellExecute = true });
|
||||
var ps = new ProcessStartInfo(link)
|
||||
{
|
||||
UseShellExecute = true,
|
||||
Verb = "open"
|
||||
};
|
||||
|
||||
Process.Start(ps);
|
||||
}
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue