Skip to content

Commit

Permalink
Change URL for compiler download
Browse files Browse the repository at this point in the history
  • Loading branch information
lukespragg committed Apr 2, 2020
1 parent 7879c7f commit 1568fd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Oxide.CSharp.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29613.14
VisualStudioVersion = 16.0.29806.167
MinimumVisualStudioVersion = 15.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Oxide.CSharp", "src\Oxide.CSharp.csproj", "{9103D682-D1AA-4A95-A499-896F551AAA62}"
EndProject
Expand Down
6 changes: 3 additions & 3 deletions src/PluginCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private static void DownloadCompiler(string remoteHash)
try
{
Interface.Oxide.LogInfo($"Downloading {FileName} for .cs (C#) plugin compilation");
HttpWebRequest request = (HttpWebRequest)WebRequest.Create($"https://assets.umod.org/compiler/{FileName}");
HttpWebRequest request = (HttpWebRequest)WebRequest.Create($"https://umod.cloud/compiler/{FileName}");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
int statusCode = (int)response.StatusCode;
if (statusCode != 200)
Expand Down Expand Up @@ -159,7 +159,7 @@ private static void DownloadCompiler(string remoteHash)

if (downloadRetries >= 2)
{
Interface.Oxide.LogInfo($"Couldn not download {FileName}! Please download manually from: https://assets.umod.org/compiler/{FileName}");
Interface.Oxide.LogInfo($"Couldn not download {FileName}! Please download manually from: https://umod.cloud/compiler/{FileName}");
return;
}

Expand All @@ -186,7 +186,7 @@ private static void UpdateCheck()
try
{
string filePath = Path.Combine(Interface.Oxide.RootDirectory, FileName);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create($"https://assets.umod.org/compiler/{FileName}.md5");
HttpWebRequest request = (HttpWebRequest)WebRequest.Create($"https://umod.cloud/compiler/{FileName}.md5");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
int statusCode = (int)response.StatusCode;
if (statusCode != 200)
Expand Down

0 comments on commit 1568fd2

Please sign in to comment.