Skip to content

Commit

Permalink
ModuleScriptEditor: Changed to write in bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Emik03 committed Aug 21, 2021
1 parent af68552 commit be0460f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Editors/ModuleScriptEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using static System.IO.File;
using static System.IO.Path;
using static System.Reflection.Assembly;
using static System.Text.Encoding;
using static System.Uri;
using static KeepCoding.Logger;
using static KeepCoding.ModuleScript;
Expand Down Expand Up @@ -83,7 +84,7 @@ private static IEnumerator InstallLatest(string tagName, string extension)

Self($"Installing the latest {extension} file...");

WriteAllText(Combine(SelfPath, $"KeepCoding {tagName}.{extension}"), web.downloadHandler.text);
WriteAllBytes(Combine(SelfPath, $"KeepCoding {tagName}.{extension}"), UTF8.GetBytes(web.downloadHandler.text));
}
}
}
Expand Down

0 comments on commit be0460f

Please sign in to comment.