From 06e33b2147edb094535a5cc38a951642b4e21c12 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Fri, 1 May 2020 22:00:43 +0100 Subject: [PATCH] uses teh return value for the replace --- Core/Commands/Script/scriptHttp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Commands/Script/scriptHttp.cs b/Core/Commands/Script/scriptHttp.cs index 064a56b..77d9187 100644 --- a/Core/Commands/Script/scriptHttp.cs +++ b/Core/Commands/Script/scriptHttp.cs @@ -21,7 +21,7 @@ namespace BSB.Commands.script if(attempt_endpoint.Contains("https://github.com/")) { - attempt_endpoint.Replace("https://github.com/", "https://raw.githubusercontent.com/"); + attempt_endpoint = attempt_endpoint.Replace("https://github.com/", "https://raw.githubusercontent.com/"); } var client = new RestClient(attempt_endpoint);