Skip to content

Commit

Permalink
Cleanup #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Moneylover3246 committed Feb 28, 2022
1 parent 55fc8b4 commit b73f619
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Crossplay/CrossplayPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private void OnPostInitialize(EventArgs e)
StringBuilder sb = new StringBuilder();
sb.Append("Crossplay has been enabled & has whitelisted the following versions:\n");
sb.Append(string.Join(", ", AllowedVersions.Select(v => ParseVersion(v))));
sb.Append("\nIf there are any issues please report them here: https://github.com/Moneylover3246/Crossplay");
sb.Append("\n\nIf there are any issues please report them here: https://github.com/Moneylover3246/Crossplay");

Console.ForegroundColor = ConsoleColor.Magenta;
Console.WriteLine("-------------------------------------");
Expand All @@ -197,8 +197,8 @@ private void OnGetData(GetDataEventArgs args)
{
if ((int)args.MsgID == 1)
{
string versionstring = reader.ReadString();
if (!int.TryParse(versionstring.Substring(versionstring.Length - 3), out int versionNum))
string clientVersion = reader.ReadString();
if (!int.TryParse(clientVersion.Substring(clientVersion.Length - 3), out int versionNum))
{
return;
}
Expand Down

0 comments on commit b73f619

Please sign in to comment.