mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
I obsolesced something I made within an hour ago.
This commit is contained in:
parent
73fddd7263
commit
fe2a1a84c3
1 changed files with 0 additions and 15 deletions
|
@ -216,21 +216,6 @@ namespace ShiftOS.Server
|
|||
WriteEncFile(savefile, JsonConvert.SerializeObject(save));
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var wr = System.Net.HttpWebRequest.Create("http://getshiftos.ml/API/GetCodepoints");
|
||||
wr.Headers.Add("Authentication: Token " + save.UniteAuthToken);
|
||||
var response = wr.GetResponse();
|
||||
using (var rstr = response.GetResponseStream())
|
||||
{
|
||||
using (var sreader = new StreamReader(rstr))
|
||||
{
|
||||
long cp = Convert.ToInt64(sreader.ReadToEnd());
|
||||
save.Codepoints = cp;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
|
||||
Program.server.DispatchTo(new Guid(guid), new NetObject("mud_savefile", new ServerMessage
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue